You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by robnangle <ro...@gmail.com> on 2011/03/28 12:32:10 UTC

Re: Dynamic combo box - Tapestry 5.2.2

Mark wrote:
> 
> &gt; Atcach, can you give a complete example (with .tml and controler
> code), with
> &gt; multiple select to refresh.
> 
> Take a look at this as well:
> http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


Hi,
I have a similar problem and would like to implement the above ajax select.
However having not really used javascript before im wondering where does the
javascript file go in the tapestry file system?

Cheers

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267334.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Everton Agner <to...@gmail.com>.
Hi!

I haven't used T5.2.x yet, and I saw that you've mentioned the improvements
on combos's chaining.

Do the "out of the box" process of chaining combos has the problem (like
T5.1 + zoneupdater) of clearing the other fields on the form? That made us
set them as @Persist'ent?

Thanks!

_______________________
Everton Agner Ramos


2011/3/29 robnangle <ro...@gmail.com>

>
> lltyk wrote:
> >
> > The js file needs to be in the same package directory, but in the
> > resources
> > directory instead of the java directory.
> >
> > --
> > View this message in context:
> >
> http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html
> > Sent from the Tapestry Users mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
> Cheers, Havent worked much with java script so I had them both in the same
> package..
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269316.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Dynamic combo box - Tapestry 5.2.2

Posted by robnangle <ro...@gmail.com>.
lltyk wrote:
> 
> The js file needs to be in the same package directory, but in the
> resources
> directory instead of the java directory.
> 
> --
> View this message in context:
> http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 

Cheers, Havent worked much with java script so I had them both in the same
package.. 


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269316.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Geoff Callender <ge...@gmail.com>.
I think that's true for maven, by its convention.

Robert, the source of confusion may be that JumpStart is built with Ant, which allows us to put js, tml, java, properties, etc. together under the java directory.

On 29/03/2011, at 10:48 PM, LLTYK wrote:

> The js file needs to be in the same package directory, but in the resources
> directory instead of the java directory.
> 
> --
> View this message in context: http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by LLTYK <LL...@mailinator.com>.
The js file needs to be in the same package directory, but in the resources
directory instead of the java directory.

--
View this message in context: http://tapestry-users.832.n2.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp6011286p6218845.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Yohan Yudanara <yo...@gmail.com>.
hmm sorry, I can't help you further because I never use that jumpstart
code with tapestry 5.2.2.
I've use that tapestry jumpstart code with tapestry 5.1.0.5

btw, why don't you upgrade to tapestry 5.2.4 ?
I've used T 5.2.4 and creating dynamic combobox is very simple. Don't
need to use zoneupdater anymore.
I've never try using T 5.2.2



On Tue, Mar 29, 2011 at 6:02 PM, robnangle <ro...@gmail.com> wrote:
> Ye it should be straight forward copying the example..
>
> Yes they are both in the mixins package..
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269174.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by robnangle <ro...@gmail.com>.
Ye it should be straight forward copying the example..

Yes they are both in the mixins package..

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269174.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Yohan Yudanara <yo...@gmail.com>.
hmm.. strange error :)

just want to make sure, do you already put ZoneUpdater.java and
zone_updater.js on the same folder (on <package-name>/mixins) ?


On Tue, Mar 29, 2011 at 5:45 PM, robnangle <ro...@gmail.com> wrote:
>
> Yohan Yudanara-2 wrote:
>>
>> Look carefully on the error message..
>>
>> &gt; With the above ajax, i get the following error:
>> &gt;
>> &gt; org.apache.tapestry5.internal.services.RenderQueueException
>> &gt; Render queue error in SetupRender[ajax/Select1:carmake]: Unable to
>> locate
>> &gt; asset 'classpath:FantasyGaa/mixins/zone_updater.js' (the file does
>> not
>> &gt; exist).
>>
>> Do you already create zone_updater.js on mixins folder?
>>
>>
>
> Ye the mixins folder has:
>
> "ZoneUpdater.java" and "zone_updater.js"
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269153.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by robnangle <ro...@gmail.com>.
Yohan Yudanara-2 wrote:
> 
> Look carefully on the error message..
> 
> &gt; With the above ajax, i get the following error:
> &gt;
> &gt; org.apache.tapestry5.internal.services.RenderQueueException
> &gt; Render queue error in SetupRender[ajax/Select1:carmake]: Unable to
> locate
> &gt; asset 'classpath:FantasyGaa/mixins/zone_updater.js' (the file does
> not
> &gt; exist).
> 
> Do you already create zone_updater.js on mixins folder?
> 
> 

Ye the mixins folder has:

"ZoneUpdater.java" and "zone_updater.js"


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269153.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Yohan Yudanara <yo...@gmail.com>.
Look carefully on the error message..

> With the above ajax, i get the following error:
>
> org.apache.tapestry5.internal.services.RenderQueueException
> Render queue error in SetupRender[ajax/Select1:carmake]: Unable to locate
> asset 'classpath:FantasyGaa/mixins/zone_updater.js' (the file does not
> exist).

Do you already create zone_updater.js on mixins folder?

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by robnangle <ro...@gmail.com>.
Yohan Yudanara-2 wrote:
> 
> (http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1)
> 

With the above ajax, i get the following error:

org.apache.tapestry5.internal.services.RenderQueueException
Render queue error in SetupRender[ajax/Select1:carmake]: Unable to locate
asset 'classpath:FantasyGaa/mixins/zone_updater.js' (the file does not
exist).



Yohan Yudanara-2 wrote:
> 
> http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html
> on &quot;Chaining of Select Components&quot; section.
> 

With this i get:

org.apache.tapestry5.internal.services.RenderQueueException
Render queue error in BeforeRenderTemplate[SelectZoneDemo:carmodel]:
Parameter 'model' of component SelectZoneDemo:carmodel is bound to null.
This parameter is not allowed to be null.

Both having being followed completely. Any idea's?

Tapestry version is 5.1.0.5


--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4269056.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by Yohan Yudanara <yo...@gmail.com>.
What version of tapestry are you using?

If you use Tapestry 5.2, you don't need to follow jumpstart
(http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxselect1)
to create Ajax Select. You just need to follow this:
http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Select.html
on "Chaining of Select Components" section.

If you use T5.1, follow jumpstart tutorial, and follow it completely.
You need to create ZoneUpdater.java and also zone_updater.js at the
bottom of jumpstart tutorial.



On Mon, Mar 28, 2011 at 5:34 PM, robnangle <ro...@gmail.com> wrote:
> I could possibly have it in the correct place but am gettint this error:
>
> Failure creating embedded component 'carMake' of
> FantasyGaa.pages.ajax.AjaxSelect1: Unable to resolve 'zoneUpdater' to a
> mixin class name. Available mixin types: Autocomplete, DiscardBody,
> NotEmpty, RenderDisabled, RenderInformals, TriggerFragment.
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267337.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

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


Re: Dynamic combo box - Tapestry 5.2.2

Posted by robnangle <ro...@gmail.com>.
I could possibly have it in the correct place but am gettint this error:

Failure creating embedded component 'carMake' of
FantasyGaa.pages.ajax.AjaxSelect1: Unable to resolve 'zoneUpdater' to a
mixin class name. Available mixin types: Autocomplete, DiscardBody,
NotEmpty, RenderDisabled, RenderInformals, TriggerFragment.

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-combo-box-Tapestry-5-2-2-tp3379129p4267337.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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