Re: checkbox problem

2010-10-26 Thread Peter Bliznak
r code ("doesn't work") and Ying's code ("does work") tells you the > same thing. And if you understand how things like the > tag work, you understand why it displays correctly, even though it > fails on the submit. Yes? > > Dave > > On Tue, Oct 26,

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
The type conversion documentation covers this (somewhat obliquely, > IMO), as do both books you mentioned. > > Dave > > On Tue, Oct 26, 2010 at 2:36 PM, Peter Bliznak wrote: > > Nopebasically first line in the action is to call getter on that > > list and it is

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
t; > Sent from my iPhone > > On Oct 26, 2010, at 10:23 AM, Peter Bliznak wrote: > > > Opps...damn gmail. > > > > As I've said I am using pretty much same approach as it was suggested > above > > by the other poster. > > I have list: > > privat

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
ng a specific issue, post your code, configuration, and > Struts version, otherwise we can't really help. > > Dave > > On Tue, Oct 26, 2010 at 11:59 AM, Peter Bliznak > wrote: > > Listen I googled quite a while before I asked here and all I saw was sea > of > >

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
s. > > If you're having a specific issue, post your code, configuration, and > Struts version, otherwise we can't really help. > > Dave > > On Tue, Oct 26, 2010 at 11:59 AM, Peter Bliznak > wrote: > > Listen I googled quite a while before I asked here and all I s

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
Thanks for your time but what you show me is exactly what I was already doing but inputted changes are NOT being seen in that list when I tried to post it. That was my question or rather problem On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote: > My way to solve this kind of problem: > > (1)

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
Listen I googled quite a while before I asked here and all I saw was sea of lost souls asking same question dating back to 2007...but NOT answers...if it is so simple and obvious then why docs for checkbox are not mentioning this trivial case. .. BTW would you please point me to the site where

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
orm. If the > code is invisible to the developer, I don't see much of a difference. > > I also gave you another option: use a map, keyed by an ID, with an object > value. > > On Monday, October 25, 2010, Peter Bliznak wrote: > > checked CheckboxInterceptor and see

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
nly way to get a value for an unchecked > checkbox, that's just how HTML works. But yes, you're wrong; the > checkbox interceptor does the work for you. Please read the > documentation and just try it. > > Dave > > (Cumbersome? Compared to what?) > > On Monday

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
...I hope I am wrong - sounds very cumbersome for 2010. On Mon, Oct 25, 2010 at 9:39 PM, Dave Newton wrote: > Same way they're generated now, with the checkbox tag, or by hand. Or use a > map. > > And there's no "of course": people use both versions. > > Dave >

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
: > Which version of Struts? > > Struts 2 uses a hidden field to deal with default (unchecked) values. > Struts 1 ActionForms used the reset() method to pre-load default > values. > > Dave > > On Mon, Oct 25, 2010 at 9:16 PM, Peter Bliznak wrote: > > Hi, > >

checkbox problem

2010-10-25 Thread Peter Bliznak
Hi, I have a list over which I am iterating - it has checkbox and other fields. I know I can define array associated with checkbox's values but that only returns values which were checked. In my other column I have date and I have to make that date associated with checkbox's state. How am I suppose

Reading properties from separate source folder

2010-02-11 Thread Peter Bliznak
Hi all, here's my problem. How do I make S2 read property files from separate folder. We have different properties for prod, uat and so on ... so we want the have separate folder which will contain different set of files for each environment. in S1 we used to have two source folders one for java f

Ghostly exception

2009-07-17 Thread Peter Bliznak
Hi folk, noticed few days ago app is throwing following exception but everything is working fine I see no problems whatsoever. But obviously I would be happier camper if I had clean runs. All ideas welcome. Almost forgot running S_2.1.6 on WebShpere 6.1. Peter. [17/07/09 16:32:06:747 EDT] 00

Re: Passing runtime exp into tag

2009-07-10 Thread Peter Bliznak
Figured it out, forget it. From: Peter Bliznak To: Struts Users Mailing List Sent: Friday, July 10, 2009 11:23:15 AM Subject: Passing runtime exp into tag Hi all, translating portion of old code which was using S1 and Tiles and ran into problem. There is

Passing runtime exp into tag

2009-07-10 Thread Peter Bliznak
Hi all, translating portion of old code which was using S1 and Tiles and ran into problem. There is one tile representing form which is being used on almost all screens. One doesn't want to write same tile over and over again since only name of the action differs. Existing code used this: // de

Re: Commercial framework based on struts2.

2009-07-07 Thread Peter Bliznak
Aahhh...in that case be my guest and go for it From: Musachy Barroso To: Struts Users Mailing List Sent: Tuesday, July 7, 2009 2:33:12 PM Subject: Re: Commercial framework based on struts2. On Tue, Jul 7, 2009 at 11:22 AM, Peter Bliznak wrote: > Gr

Re: Commercial framework based on struts2.

2009-07-07 Thread Peter Bliznak
Excuse me but I've been following this list for number of years and this is FIRST time anybody is asking for anything like this - I would not call this an overwhelming demand. Besides these kind of widgets can't ever be done to everyone's liking - they must tweaked amd changed for a specific app -

Re: Custom validation interceptor

2009-06-20 Thread Peter Bliznak
Preciously!..what you said about changing form is exactly what I was thinking. From: Dave Newton To: Struts Users Mailing List Sent: Saturday, June 20, 2009 8:35:50 PM Subject: Re: Custom validation interceptor Peter Bliznak wrote: > It is across entire

Re: Custom validation interceptor

2009-06-20 Thread Peter Bliznak
t: Re: Custom validation interceptor Peter Bliznak wrote: > I have following requirement: If validation of the page fails 3 times > in row - invalidate session and redirect to index page. Should I > replace default validation interceptor in default stack with my own > to achieve what I am a

Custom validation interceptor

2009-06-20 Thread Peter Bliznak
Hi,I have following requirement:If validation of the page fails 3 times in row - invalidate session and redirect to index page.Should I replace default validation interceptor in default stack with my own to achieve what I am after?I there any other way?Any hint would be greatly appreciatedPeter.

Struts2 validation

2008-08-01 Thread Peter Bliznak
Hi all, converting big S1 application and run into this problem. Even though form is being validated in S1 version by validator.xml there is an user field which was validated on focus lost by asynch call using Ajax - to find found if by user chosen user name is still available. Call is then interc

Re: JSON and ExtJS

2007-12-20 Thread Peter Bliznak
:27:24 PM Subject: Re: JSON and ExtJS yes indeed. http://cwiki.apache.org/S2PLUGINS/json-plugin.html musachy On Dec 20, 2007 4:23 PM, Peter Bliznak <[EMAIL PROTECTED]> wrote: > hm..so you are saying > > putting things into MAP like this: > > MAP entry 1 : success

Re: JSON and ExtJS

2007-12-20 Thread Peter Bliznak
Struts Users Mailing List Sent: Thursday, December 20, 2007 3:54:22 PM Subject: Re: JSON and ExtJS just add fields to your action with those names and values, or return a map with all those value as the root object to be serialized. musachy On Dec 20, 2007 3:49 PM, Peter Bliznak <[EMAIL PR

Re: JSON and ExtJS

2007-12-20 Thread Peter Bliznak
We are using EXTJS and Struts2 + Hibernate Search and JPA and here are no problems. As for JSON plugin mentioned below. I was using it for old dojo before we gave up on it and switched to beatifull EXTJS. But I dont think I can use this JSON plugin since there is no way - or let me put it thi

Dynamic tree

2007-11-08 Thread Peter Bliznak
Hi new to 2.0 ajax tags so I need some help on tree tag. I am trying to build tree and since it rather big one I would like to get data from server incrementally -- only when I click on tree node. I found tree docs at http://struts.apache.org/2.x/docs/tree.html and at the very bottom of the pag

Re: Struts-Faces: validator

2007-02-05 Thread Peter Bliznak
Hi Rodrigo, yes you can use commandButon. Btw have you look at example code coming with Struts 1.3.5? Peter. PS If you still have problem to make it work let me know I will send you some code to nail it down. Rodrigo Pereira <[EMAIL PROTECTED]> wrote: I am already doing this. Can I use h:command

Re: Struts-Faces: validator

2007-02-03 Thread PETER BLIZNAK
Yes it does work, I am using on every single page. Rodrigo Pereira <[EMAIL PROTECTED]> wrote: hi All, does anybody know if validator work with struts-faces? I have read a lot of tutorials on the Internet, but no success at all Thanks, Rodrigo Pereira

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
of jsp. Thanks rukka PETER BLIZNAK wrote: > Hi Rodrigo, > must admit I am not familiar with ajax4jsf tags. My setup is > Struts-Myfaces-Tiles and I have pages I have to prepopulate pages with radio > and check boxes based on what is coming from LDAP - for that I am forwarding > to Str

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
e ajax ( ajax4jfs tags ). Basically I want to populate 4 fields according to the value of another field. Thanks, Rodrigo Pereira On 2/1/07, PETER BLIZNAK wrote: > Hi Rodrigo, > I do not have an answer to your question, but let me ask you why would you > wanted to have actionForm act as a man

Re: Struts-Faces: FormBean and ManagedBean

2007-02-01 Thread PETER BLIZNAK
Hi Rodrigo, I do not have an answer to your question, but let me ask you why would you wanted to have actionForm act as a managed bean? I am guessing it is because you want to use it for loading data into dataTable component. If that is a case you don't have to use managedBean - any "ordinary" b

Re: Collection of Options

2006-03-08 Thread PETER BLIZNAK
--- Rick Reumann <[EMAIL PROTECTED]> wrote: > PETER BLIZNAK wrote: > > Hi there, > > I run into something I cant figure perhaps someone > > here can help me to shed some light on it. > > > > Basically I have dynamic table - meaning I iterate > > o

Collection of Options

2006-03-07 Thread PETER BLIZNAK
Hi there, I run into something I cant figure perhaps someone here can help me to shed some light on it. Basically I have dynamic table - meaning I iterate over supplied colection and build up table. No problem there that is simple stuff. Confusion starts when one of the columns must be list of op