[Stripes-users] Stripes framework radio button binding to ActionBean and defaults

2012-06-25 Thread William Krick
I can't seem to get the stripes:radio control to bind to my ActionBean. Whenever my JSP loads, none of the radio buttons are selected. I would like to be able to specify a default value so that when the JSP is loaded, one of the radio buttons are selected. The stripes documentation indicates

Re: [Stripes-users] Stripes framework radio button binding to ActionBean and defaults

2012-06-25 Thread William Krick
utton will be checked. > > > On Mon, Jun 25, 2012 at 12:25 PM, William Krick wrote: >> I can't seem to get the stripes:radio control to bind to my ActionBean. >> >> Whenever my JSP loads, none of the radio buttons are selected.  I >> would like to be able

Re: [Stripes-users] Stripes framework radio button binding to ActionBean and defaults

2012-06-25 Thread William Krick
ot; action to handle the subsequent form post. > > If you're not getting to the JSP page from that same action bean, then > it won't work. > > On Mon, Jun 25, 2012 at 1:37 PM, William Krick wrote: >> It doesn't seem to work. >> >> I took the stripes

Re: [Stripes-users] Stripes framework radio button binding to ActionBean and defaults

2012-06-25 Thread William Krick
esolution view() { > return new ForwardResolution("example.jsp"); > } > > > Check out the Bugzooky example.. it has almost everything you'll ever need. > > > > > On Mon, Jun 25, 2012 at 3:02 PM, William Krick wrote: >> The index

[Stripes-users] StreamingResolution, temporary files, and Exceptions

2014-06-23 Thread William Krick
In my web application, I have code that generates a temporary file (based on user input) and streams it back to the user using a StreamingResolution. The initial implementation had a utility method that generated the file and passed back an InputStream... public Resolution exportCsv() throws IOEx

[Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread William Krick
In a JSP, I can do something like this to display a value from the action bean... Hello ${actionBean.person.name } I'm trying to figure out how to display alternate text in the jsp if the value from the actionBean is null, but I can't figure out any syntax that w

Re: [Stripes-users] JSP expression language and stripes framework

2014-11-21 Thread William Krick
I hadn't thought about using JSTL. Then I could also do something like this (using "empty" in the test as suggested by Mike McNally)... http://actionbean.person.name/> ? 'valued customer' : actionBean.person.name }"/> On Fri, Nov 21, 2014 at 5:38 PM, Joaquin Vald

[Stripes-users] Preserving unbound values on save

2014-11-26 Thread William Krick
I have a situation where I have a JSP form and it is populated with values from an object pulled from a database. Below is some sample code off the top of my head. It might not compile. The names have been changed to protect the innocent. The problem I'm having is that the Customer object contai

[Stripes-users] using stripes select just for the collection feature

2015-03-17 Thread William Krick
I have a that I'm using to provide a list of items to the user using the . When an item is selected in the list, some javascript is triggered that adds some on-screen text to a table along with some hidden input tags that get submitted with the page. However, the actual value currently selected

Re: [Stripes-users] StreamingResolution, temporary files, and Exceptions

2015-07-09 Thread William Krick
, is) { > public void stream(HttpServletResponse response) throws > Exception { > try { > super.stream(response); > } finally { > FileUtils.deleteQuietly(tempFile[0]); > } > } >

Re: [Stripes-users] StreamingResolution, temporary files, and Exceptions

2015-07-13 Thread William Krick
>>> } >>> >>> And there is no need of temp files ! >>> Cheers >>> El 9/7/2015 18:07, "Nestor Hernandez" escribió: >>> >>>> Well, I think that that could be much better like this. Just write to >>>> the respo

[Stripes-users] clearing form values before ForwardResolution

2015-07-22 Thread William Krick
I have a situation where I'm submitting a form with search parameters, performing a database search, and forwarding to the same page with the results of the search displayed in a table beneath the form input fields with all the search parameters. Pretty standard stuff, really. The problem I'm hav

Re: [Stripes-users] clearing form values before ForwardResolution

2015-07-22 Thread William Krick
whatever_page.jsp" ); > > That should do what you are looking for. Hope this helps. > > -- Rick > > > > On Wed, Jul 22, 2015 at 10:14 AM, William Krick > wrote: > >> I have a situation where I'm submitting a form with search parameters, >> perfor

Re: [Stripes-users] clearing form values before ForwardResolution

2015-07-22 Thread William Krick
7;s definitely going to drive > the method for clearing out bean fields. > > -- Rick > > On Wed, Jul 22, 2015 at 11:54 AM, William Krick > wrote: > >> @Andy >> This is an existing large project in a production environment. So I >> can't change the popu

[Stripes-users] Validation highlighting items in a multi-select list.

2015-08-04 Thread William Krick
I have an app that displays items in a select list that supports multi-select... The user can add new items (strings) to the list (via javascript) before submitting and I'm trying to validate the added items. Note that I have javascript code that sets all the items to selected in the list be

[Stripes-users] Stripes Framework + Knockout.js

2016-01-11 Thread William Krick
Is anyone using Stripes and Knockout together? -- Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions

[Stripes-users] stripes tag for escaped string literal in JavaScript

2016-06-28 Thread William Krick
I've run into an interesting situation with un-escaped double quotes in JavaScript in a JSP. I have some JavaScript code like this... var companyName = "${actionBean.company.name}"; ...which breaks if the company name contains double quotes. The same situation can happen if the company name

Re: [Stripes-users] stripes tag for escaped string literal in JavaScript

2016-06-29 Thread William Krick
to handle this > > from our JSPs and to keep JSP-specific code from polluting our model > > classes. > > > > > > > > var companyName = '${vt:escapeJS(actionBean.company.name)}'; > > > > > > > > It just wraps a call to StringEs

[Stripes-users] Strips user access control of linked files

2016-11-28 Thread William Krick
I'm working on a Stripes web application that provides links to tutorial files. The users have to log into the application. The problem is that the links to the tutorial files are accessible to anyone, whether they are logged into the application or not. The links should only be accessible to lo

Re: [Stripes-users] Strips user access control of linked files

2016-11-28 Thread William Krick
echanism? > > -- Rick > > On Mon, Nov 28, 2016 at 2:23 PM, William Krick > wrote: > >> I'm working on a Stripes web application that provides links to tutorial >> files. The users have to log into the application. The problem is that >> the links to th

[Stripes-users] stripes:options-map example?

2017-04-28 Thread William Krick
Is there an example somewhere that shows how to use the stripes:options-map tag? I'm trying to get it working with a Map object but not having any luck. I'm using this syntax... The map is defined in my ActionBean like this... private static final Map myMap = new HashMap(); static { myMap