-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Sending some value in generate() method of CustomGenerator
PostPosted: Thu Jun 04, 2009 5:11 am 
Newbie

Joined: Thu Jun 04, 2009 5:01 am
Posts: 1
Location: Banglore
Hi,
I want to send some form bean value into generate() method of CustomGenerator class so that i can generate value of ID dynamically.
My requirement is from the JSP i have selected the batchId .Now i want to generate the id depending the alue comming from JSP form.
Like if selected batchId id B17 then id must be in form of B17-057,
Like if selected batchId id B18 then id must be in form of B18-057,
Like if selected batchId id B19 then id must be in form of B19-057,


For this i need to access the form bean value in generate() method.So than according to batchId we can generate the next ID.
How and when we can send the value from action to generate() method.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.