Re: Example of jquery tabs with formfragments

2012-06-11 Thread ccureau
Sorry to resurrect this thread, but I'm at a loss.  I really can't seem to
make the tabs work when I have a grid involved no matter what I try.  Tabs
that have form data now reliably work since I've added the ajax=false to
my .tml.

All of my data are stored in the Employee class, with Lists for Addresses,
Emails, and Phones properly wired up as one-to-many relationships with
Hibernate. I can verify that the data is being read when the page loads, but
I can't display a grid for the life of me.  Even the indication that there
is no data to display doesn't show up.

I'll be happy to post my code if someone wants to look at it.  Sorry to be a
pain!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713780.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks very much! I'll test it out this morning...and if I can get it
working decently, I'll make up a post for others to use.

Speaking of, is there a cook book of sorts for tapestry5-jQuery as there is
for tapestry? Maybe I can give back that way. :)
On May 29, 2012 6:34 PM, arterzatij arterza...@gmail.com wrote:

 BTW, when you do a click the tab component update the form needed by zone
 component, but it is donde by tabs component...

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713512.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Example of jquery tabs with formfragments

2012-05-30 Thread ICE Ernesto Arteaga Zavala
2012/5/30 Chris Cureau cmcur...@gmail.com

 Thanks very much! I'll test it out this morning...and if I can get it

working decently, I'll make up a post for others to use.


That should be great :)


 Speaking of, is there a cook book of sorts for tapestry5-jQuery as there is
 for tapestry? Maybe I can give back that way. :)


I was looking for, with no success. So currently I'm trying on myself...


 On May 29, 2012 6:34 PM, arterzatij arterza...@gmail.com wrote:

  BTW, when you do a click the tab component update the form needed by zone
  component, but it is donde by tabs component...
 
  --
  View this message in context:
 
 http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713512.html
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 




-- 
Saludos,

---
Nada que se consiga sin pena y sin trabajo
 es verdaderamente valioso.
  Joseph Addison
---

ICE Ernesto Arteaga Zavala
Ingeniero de Desarrollo


Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Okay, giving it a try, but running into another issue...

I've got two tabs that contain forms and three tabs that contain grid
data.  As it stands now, the forms redraw themselves (albeit without data)
and the grids return nothing.  My guess is that I'm missing a zone refresh
somewhere.  I watched the POST with Firebug, and I can see a POST
tabnumber being sent as well as the zoneid for the tabs...

Tried catching Action from the tabs, but no help.  Not sure how to capture
the zone request.

On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com wrote:

 Hi, I did that oin this way...

 t:jquery.tabs
t:tabs=personalDataTab, addressTab, bankAccountTab,
 locatorsTab
t:activePanelId=activePanel

p:personalDataTab

t:rimsa.info message=${message:creation-info} /

t:form t:id=userForm
t:beaneditor t:id=userEditor
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form

/p:personalDataTab

p:addressTab
t:form t:id=addressForm
t:beaneditor t:id=addressEditor
p:street
label for=street
t:outputraw
 value=message:street-label /
/label
t:textfield t:id=street
 value=user.address.street /
/p:street
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:addressTab

p:bankAccountTab
t:form t:id=bankAccountForm
t:beaneditor t:id=bankAccountEditor
p:bank
label for=bank
t:outputraw
 value=message:bank-label /
/label
t:bank.bankModel
 value=user.bankAccount.bank /
/p:bank
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:bankAccountTab

p:locatorsTab

t:grid source=user.locators /
t:form t:id=locatorsForm
t:beaneditor t:id=locatorEditor
p:locator
label for=locator
t:outputraw
 value=message:locator-label /
/label
t:user.locatortypeModel
 value=locator.locatorType /
t:textfield t:id=locator
 value=locator.locator /
/p:locator
p:button
div
 class=t-beaneditor-row
t:submit
 t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:locatorsTab

/t:jquery.tabs

 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713511.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




Re: Example of jquery tabs with formfragments

2012-05-30 Thread François Facon
did you try to add a t:ajax=false in your tabs.
As mention at http://tapestry5-jquery.com/components/docsjquerytabs
this will disable the zone refresh

this parameter is used by most of the samples demo like for instance
http://tapestry5-jquery.com/core/docsdatefield
and the related tml
https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/resources/org/got5/tapestry5/jquery/pages/core/DocsDatefield.tml


2012/5/30 Chris Cureau cmcur...@gmail.com:
 Okay, giving it a try, but running into another issue...

 I've got two tabs that contain forms and three tabs that contain grid
 data.  As it stands now, the forms redraw themselves (albeit without data)
 and the grids return nothing.  My guess is that I'm missing a zone refresh
 somewhere.  I watched the POST with Firebug, and I can see a POST
 tabnumber being sent as well as the zoneid for the tabs...

 Tried catching Action from the tabs, but no help.  Not sure how to capture
 the zone request.

 On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com wrote:

 Hi, I did that oin this way...

 t:jquery.tabs
                t:tabs=personalDataTab, addressTab, bankAccountTab,
 locatorsTab
                t:activePanelId=activePanel

                p:personalDataTab

                        t:rimsa.info message=${message:creation-info} /

                        t:form t:id=userForm
                                t:beaneditor t:id=userEditor
                                        p:button
                                                div
 class=t-beaneditor-row
                                                        t:submit
 t:mixins=jquery/button /
                                                /div
                                        /p:button
                                /t:beaneditor
                        /t:form

                /p:personalDataTab

                p:addressTab
                        t:form t:id=addressForm
                                t:beaneditor t:id=addressEditor
                                        p:street
                                                label for=street
                                                        t:outputraw
 value=message:street-label /
                                                /label
                                                t:textfield t:id=street
 value=user.address.street /
                                        /p:street
                                        p:button
                                                div
 class=t-beaneditor-row
                                                        t:submit
 t:mixins=jquery/button /
                                                /div
                                        /p:button
                                /t:beaneditor
                        /t:form
                /p:addressTab

                p:bankAccountTab
                        t:form t:id=bankAccountForm
                                t:beaneditor t:id=bankAccountEditor
                                        p:bank
                                                label for=bank
                                                        t:outputraw
 value=message:bank-label /
                                                /label
                                                t:bank.bankModel
 value=user.bankAccount.bank /
                                        /p:bank
                                        p:button
                                                div
 class=t-beaneditor-row
                                                        t:submit
 t:mixins=jquery/button /
                                                /div
                                        /p:button
                                /t:beaneditor
                        /t:form
                /p:bankAccountTab

                p:locatorsTab

                        t:grid source=user.locators /
                        t:form t:id=locatorsForm
                                t:beaneditor t:id=locatorEditor
                                        p:locator
                                                label for=locator
                                                        t:outputraw
 value=message:locator-label /
                                                /label
                                                t:user.locatortypeModel
 value=locator.locatorType /
                                                t:textfield t:id=locator
 value=locator.locator /
                                        /p:locator
                                        p:button
                                                div
 class=t-beaneditor-row
                                                        t:submit
 t:mixins=jquery/button /
                                                /div
                                        /p:button
                                /t:beaneditor
                        /t:form
                /p:locatorsTab

        

Re: Example of jquery tabs with formfragments

2012-05-30 Thread Chris Cureau
Thanks, that did the trick for the forms!  The grids still aren't showing
up...I'll do some more work.

On Wed, May 30, 2012 at 2:47 PM, François Facon francois.fa...@atos.netwrote:

 did you try to add a t:ajax=false in your tabs.
 As mention at http://tapestry5-jquery.com/components/docsjquerytabs
 this will disable the zone refresh

 this parameter is used by most of the samples demo like for instance
 http://tapestry5-jquery.com/core/docsdatefield
 and the related tml

 https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/resources/org/got5/tapestry5/jquery/pages/core/DocsDatefield.tml


 2012/5/30 Chris Cureau cmcur...@gmail.com:
  Okay, giving it a try, but running into another issue...
 
  I've got two tabs that contain forms and three tabs that contain grid
  data.  As it stands now, the forms redraw themselves (albeit without
 data)
  and the grids return nothing.  My guess is that I'm missing a zone
 refresh
  somewhere.  I watched the POST with Firebug, and I can see a POST
  tabnumber being sent as well as the zoneid for the tabs...
 
  Tried catching Action from the tabs, but no help.  Not sure how to
 capture
  the zone request.
 
  On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com
 wrote:
 
  Hi, I did that oin this way...
 
  t:jquery.tabs
 t:tabs=personalDataTab, addressTab, bankAccountTab,
  locatorsTab
 t:activePanelId=activePanel
 
 p:personalDataTab
 
 t:rimsa.infomessage=${message:creation-info} /
 
 t:form t:id=userForm
 t:beaneditor t:id=userEditor
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 
 /p:personalDataTab
 
 p:addressTab
 t:form t:id=addressForm
 t:beaneditor t:id=addressEditor
 p:street
 label for=street
 t:outputraw
  value=message:street-label /
 /label
 t:textfield
 t:id=street
  value=user.address.street /
 /p:street
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 /p:addressTab
 
 p:bankAccountTab
 t:form t:id=bankAccountForm
 t:beaneditor t:id=bankAccountEditor
 p:bank
 label for=bank
 t:outputraw
  value=message:bank-label /
 /label
 t:bank.bankModel
  value=user.bankAccount.bank /
 /p:bank
 p:button
 div
  class=t-beaneditor-row
 t:submit
  t:mixins=jquery/button /
 /div
 /p:button
 /t:beaneditor
 /t:form
 /p:bankAccountTab
 
 p:locatorsTab
 
 t:grid source=user.locators /
 t:form t:id=locatorsForm
 t:beaneditor t:id=locatorEditor
 p:locator
 label for=locator
 t:outputraw
  value=message:locator-label /
 /label
 t:user.locatortypeModel
  value=locator.locatorType /
 t:textfield
 t:id=locator
  value=locator.locator /
 /p:locator
 p:button
 div
  class=t-beaneditor-row
   

Re: Example of jquery tabs with formfragments

2012-05-30 Thread ICE Ernesto Arteaga Zavala
I'm handling only one entity user and it store all others (banaaccount,
address, locators)

and for locator tab there I put a grid component and it work very well:

  p:locatorsTab
   t:grid source=user.locators /

2012/5/30 Chris Cureau cmcur...@gmail.com

 Thanks, that did the trick for the forms!  The grids still aren't showing
 up...I'll do some more work.

 On Wed, May 30, 2012 at 2:47 PM, François Facon francois.fa...@atos.net
 wrote:

  did you try to add a t:ajax=false in your tabs.
  As mention at http://tapestry5-jquery.com/components/docsjquerytabs
  this will disable the zone refresh
 
  this parameter is used by most of the samples demo like for instance
  http://tapestry5-jquery.com/core/docsdatefield
  and the related tml
 
 
 https://github.com/got5/tapestry5-jquery-demo/blob/master/src/main/resources/org/got5/tapestry5/jquery/pages/core/DocsDatefield.tml
 
 
  2012/5/30 Chris Cureau cmcur...@gmail.com:
   Okay, giving it a try, but running into another issue...
  
   I've got two tabs that contain forms and three tabs that contain grid
   data.  As it stands now, the forms redraw themselves (albeit without
  data)
   and the grids return nothing.  My guess is that I'm missing a zone
  refresh
   somewhere.  I watched the POST with Firebug, and I can see a POST
   tabnumber being sent as well as the zoneid for the tabs...
  
   Tried catching Action from the tabs, but no help.  Not sure how to
  capture
   the zone request.
  
   On Tue, May 29, 2012 at 6:30 PM, arterzatij arterza...@gmail.com
  wrote:
  
   Hi, I did that oin this way...
  
   t:jquery.tabs
  t:tabs=personalDataTab, addressTab, bankAccountTab,
   locatorsTab
  t:activePanelId=activePanel
  
  p:personalDataTab
  
  
  t:rimsa.infomessage=${message:creation-info} /
  
  t:form t:id=userForm
  t:beaneditor t:id=userEditor
  p:button
  div
   class=t-beaneditor-row
  t:submit
   t:mixins=jquery/button /
  /div
  /p:button
  /t:beaneditor
  /t:form
  
  /p:personalDataTab
  
  p:addressTab
  t:form t:id=addressForm
  t:beaneditor t:id=addressEditor
  p:street
  label for=street
  t:outputraw
   value=message:street-label /
  /label
  t:textfield
  t:id=street
   value=user.address.street /
  /p:street
  p:button
  div
   class=t-beaneditor-row
  t:submit
   t:mixins=jquery/button /
  /div
  /p:button
  /t:beaneditor
  /t:form
  /p:addressTab
  
  p:bankAccountTab
  t:form t:id=bankAccountForm
  t:beaneditor t:id=bankAccountEditor
  p:bank
  label for=bank
  t:outputraw
   value=message:bank-label /
  /label
  t:bank.bankModel
   value=user.bankAccount.bank /
  /p:bank
  p:button
  div
   class=t-beaneditor-row
  t:submit
   t:mixins=jquery/button /
  /div
  /p:button
  /t:beaneditor
  /t:form
  /p:bankAccountTab
  
  p:locatorsTab
  
  t:grid source=user.locators /
  t:form t:id=locatorsForm
  t:beaneditor t:id=locatorEditor
  p:locator
  label for=locator
  t:outputraw
   value=message:locator-label /
  /label
  
  

Re: Example of jquery tabs with formfragments

2012-05-29 Thread arterzatij
Hi, I did that oin this way...

t:jquery.tabs
t:tabs=personalDataTab, addressTab, bankAccountTab, 
locatorsTab
t:activePanelId=activePanel

p:personalDataTab

t:rimsa.info message=${message:creation-info} /

t:form t:id=userForm
t:beaneditor t:id=userEditor
p:button
div class=t-beaneditor-row
t:submit 
t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form

/p:personalDataTab

p:addressTab
t:form t:id=addressForm
t:beaneditor t:id=addressEditor
p:street
label for=street
t:outputraw 
value=message:street-label /
/label
t:textfield t:id=street 
value=user.address.street /
/p:street
p:button
div class=t-beaneditor-row
t:submit 
t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:addressTab

p:bankAccountTab
t:form t:id=bankAccountForm
t:beaneditor t:id=bankAccountEditor
p:bank
label for=bank
t:outputraw 
value=message:bank-label /
/label
t:bank.bankModel 
value=user.bankAccount.bank /
/p:bank
p:button
div class=t-beaneditor-row
t:submit 
t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:bankAccountTab

p:locatorsTab

t:grid source=user.locators /
t:form t:id=locatorsForm
t:beaneditor t:id=locatorEditor
p:locator
label for=locator
t:outputraw 
value=message:locator-label /
/label
t:user.locatortypeModel 
value=locator.locatorType /
t:textfield t:id=locator 
value=locator.locator /
/p:locator
p:button
div class=t-beaneditor-row
t:submit 
t:mixins=jquery/button /
/div
/p:button
/t:beaneditor
/t:form
/p:locatorsTab

/t:jquery.tabs

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713511.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Example of jquery tabs with formfragments

2012-05-29 Thread arterzatij
BTW, when you do a click the tab component update the form needed by zone
component, but it is donde by tabs component...

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Example-of-jquery-tabs-with-formfragments-tp5713510p5713512.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org