Skip to main content

Help in dojo.tabbedview pleaseeee :-)

5 replies [Last post]
jomello_br
Offline
Joined: 2004-04-27

Hello friends, happy new year to all: -)

I would like to know if it is possible to do the following:

I have a dojo.tabbedview in the it paginates empresa.jsp with the following syntax:

He/she/you would like to place an input text in the it paginates empresa.jsp and the one that I to type contemplates in the other input text of the it paginates emp_dados.jsp

I ask... Is that possible???

At once I thank and I am in I await him/it.. hugs friends

Jomello

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31

You can do this by putting a JSP page maybe somethign like foo.jsp containing a Dynamic Contaner widget inside the tabbed view page and have the url of the dynamic container widget point to the (in your case) emp_dados.jsp. You will need to set the args {iframe: true} to make it an iframe so you can page through pages in the tabbed view. A click on the link will let you navigate to the new page from a form.

See how this was done in Carla's Blog:

http://weblogs.java.net/blog/carlavmott/archive/2007/01/building_web_20....

Another approach might be to have the form post in emp_dados.jsp publish an event that would change the url / content of the dojo.tabbed but this would be a little more involved and require you to write some glue code.

Personally I like the second approach but the first is a little easier to do. If you would like an example of how to do the second I could put one together.

jomello_br
Offline
Joined: 2004-04-27

Hello Murray, everything well with you friend? : -)

Thank you for your help, but unhappily I didn't still solve my problem.

I will try to detail to see if we got to solve the problem.

I have a cadaster of very big Company, then I thought about placing a grid with all the registered Companies and soon I lower to have a dojo.tabbedview to separate the data.
In dojo.tabbedview 4 exist you paginate: emp_dados.jsp, emp_outros.jsp, emp_diversos.jsp and emp_setores.jsp.
I created a new one I already project with the new version of Jamki using the Standard, in DIV on the left side I placed a spry.accordion calling the cadaster of Companies (company.jsp) inside of the iframe, until oh everything works perfectly.
The one that I would like is of to click on top of a line of the grid and to update the data of the you paginate above mentioned or be the grid and dojo.tabbedview they are inside of the it paginates company.jsp.

I am not getting to update the data of the you paginate of the Company: - (

I thank friend at once

Hugs

Jomello

gmurray71
Offline
Joined: 2003-07-31

So let me understand correctly.

You have a large table/grid of data that is in an iframe.
You have a tabbeded view with 4 tabs pointing to different JSP pages.

It seems like you want to drive the content of each tab based on a URL click within the application.

Could you please confirm this is the type of thing you are trying to do? If so I can provide some possible solutions.

-Greg

jomello_br
Offline
Joined: 2004-04-27

Hello again Greg: -)
It is exactly that friend.
I have a table/grid and soon I lower a dojo.tabbedview with 4 you paginate different, when I click in a line of the table/grid I want to update all the fields of the 4 you paginate that are inside of dojo.tabbedview.
I am trying to use Carla example, but I didn't still get anything: - (

Hugs and thank you again for your attention: -)

Jomello

jomello_br
Offline
Joined: 2004-04-27

IIIIIuuuuupiiiiiiii I got Greg:D
I always forget him/it harmed of ID (he he he: -))
I will try to describe my solution to help the other friends ok: -)

1st. I created a new one I project JMaki as Standard
2nd. In DIV on the left side I placed a component spry.accordion, in the link I call her it paginates empresa.jsp inside of the iframe
3rd. In the it paginates empresa.jsp place the components table/grid and dojo.tabbedview
4th. In the call of the component dojo.tabbedview I place the 4 you paginate JSP (emp_dados.jsp, emp_outros.jsp, emp_diversos.jsp and emp_setores.jsp
5th. When I click in a line of the table/grid I call a function javascript that updates the data of the you paginate (important it is necessary to place ID in all the fields of the you paginate)

(It paginates emp_dados.jsp)
document.getElementById ("ipRazSoc") .value = mygrid.cells2(mygrid.getRowIndex(mygrid.getSelectedId ()) ,2) .getValue ();

(It paginates emp_diversos.jsp)
document.getElementById ("ipRazSoc2") .value = mygrid.cells2(mygrid.getRowIndex(mygrid.getSelectedId ()) ,2) .getValue ();

To leave you give the sky it is the limit:D

Thank you again Greg for your attention

Hugs

Jomello