<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user">
    <title>gmane.comp.web.click.user</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5138"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5137"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5136"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5135"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5134"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5133"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5132"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5131"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5130"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5129"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5128"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5127"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5126"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5125"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5124"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5123"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5122"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5121"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5120"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.web.click.user/5119"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5138">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5138</link>
    <description>&lt;pre&gt;My Vehicle class has the Customer class as instance variable[1]. Thus, I
must create my Select with the appropriated bind path -

Select customerSelect = new Select("customer.id");

are you using this approach?

[1]
http://code.google.com/p/construtor/source/browse/trunk/park-samples/park-jpa/src/main/java/park/model/Vehicle.java


2013/5/18 Bob Schellink &amp;lt;sabob1&amp;lt; at &amp;gt;gmail.com&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>Gilberto</dc:creator>
    <dc:date>2013-05-18T15:09:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5137">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5137</link>
    <description>&lt;pre&gt;Do you use a debugger?

Does this line execute?
if (StringUtils.isNotBlank(id)) {

or the else part?

In your onGet the form.copyFrom should populate the Select. If not your naming is probably off. You 
can manually set the Select value with:

select.setValue(idOfAnException);

regards

Bob

On 2013/05/18 02:55, Kristian Lind wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-18T07:09:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5136">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5136</link>
    <description>&lt;pre&gt;I can simply not get this to work...

My PrintProviderMockEnt has a list of PrintProviderMockMTMExceptionEnt.
The user can, for now, only choose on exception... so there is only one
exception in that list.
It looks the the name field in working...


package com.farheap.jsi.dashboard.pages.customer;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.apache.click.ActionListener;
import org.apache.click.Control;
import org.apache.click.control.Form;
import org.apache.click.control.HiddenField;
import org.apache.click.control.Option;
import org.apache.click.control.Select;
import org.apache.click.control.Submit;
import org.apache.click.control.TextField;
import org.apache.click.dataprovider.DataProvider;
import org.apache.click.util.ClickUtils;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.farheap.jsi.dashboard.utils.BorderedPage;
import com.farheap.jsi.dashboard.utils.SessionBeanManager;
import com.farheap&lt;/pre&gt;</description>
    <dc:creator>Kristian Lind</dc:creator>
    <dc:date>2013-05-18T00:55:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5135">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5135</link>
    <description>&lt;pre&gt;Sorry, didn't answer you question. But here it is: DataProvider
interface[1].

[1]
http://click.apache.org/docs/click-api/org/apache/click/control/Select.html#setDataProvider%28org.apache.click.dataprovider.DataProvider%29


2013/5/17 Gilberto &amp;lt;gilbertoca&amp;lt; at &amp;gt;gmail.com&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>Gilberto</dc:creator>
    <dc:date>2013-05-17T21:02:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5134">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5134</link>
    <description>&lt;pre&gt;Complementing Bob's answer, here[1] you can see some examples.
Regards,

Gilberto
[1]
http://code.google.com/p/construtor/source/browse/trunk/park-samples/park-jpa/src/main/java/park/web/page/EditVehicle.java

2013/5/17 Kristian Lind &amp;lt;klindp&amp;lt; at &amp;gt;gmail.com&amp;gt;

&lt;/pre&gt;</description>
    <dc:creator>Gilberto</dc:creator>
    <dc:date>2013-05-17T20:55:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5133">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5133</link>
    <description>&lt;pre&gt;I tried to use setValueObject, but nothing is working.. what should be the
argument  ?? and Option... a String. ??


On Fri, May 17, 2013 at 8:57 AM, Bob Schellink &amp;lt;sabob1&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Kristian Lind</dc:creator>
    <dc:date>2013-05-17T19:20:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5132">
    <title>Re: How to Render PDF Reports ?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5132</link>
    <description>&lt;pre&gt;Hi,

This demo might help:
http://click.avoka.com/click-examples/general/excel-export.htm

regards

Bob

On 2013/05/16 17:24, pvmalone&amp;lt; at &amp;gt;netzero.net wrote:


&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-17T16:50:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5131">
    <title>Re: Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5131</link>
    <description>&lt;pre&gt;Hi,

Use this:
http://click.apache.org/docs/click-api/org/apache/click/control/Form.html#copyFrom%28java.lang.Object%29

or:
http://click.apache.org/docs/click-api/org/apache/click/control/Field.html#setValueObject%28java.lang.Object%29

regards

Bob

On 2013/05/16 20:31, Kristian Lind wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-17T15:57:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5130">
    <title>Re: How to Render PDF Reports ?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5130</link>
    <description>&lt;pre&gt;Could you set the filename by Content-Disposition header?

2013/05/17 0:25 "pvmalone&amp;lt; at &amp;gt;netzero.net" &amp;lt;pvmalone&amp;lt; at &amp;gt;netzero.net&amp;gt;:
reports in Apache Click.  Some users want to display the PDF report in a
web browser and other users want to display the PDF report in the PDF
document viewer (e.g., Adobe Acrobat).  Using the following code the PDF
report displays correctly in the browser when using IE, Chrome, and
Firefox.  However, for the users that have their browsers configured to
show PDFs outside of the browser, the PDF report only displays in the PDF
document viewer when using IE.  Chrome and Firefox download a file with the
wrong file extension (user-1.htm instead of user-1.pdf).
both in a web browser or outside of the web browser depending on how the
client has their browser configured to display PDFs?
this, "onReportClick");
framework.
&lt;/pre&gt;</description>
    <dc:creator>Naoki Takezoe</dc:creator>
    <dc:date>2013-05-17T01:47:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5129">
    <title>Select control</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5129</link>
    <description>&lt;pre&gt;Hi, I have a select where a user can select an option.

// Select exception
exception = new Select("exception", true);
exception.setMultiple(false);
exception.setDataProvider(new DataProvider() {
public List&amp;lt;Option&amp;gt; getData() {
List&amp;lt;Option&amp;gt; options = new ArrayList&amp;lt;Option&amp;gt;();
List&amp;lt;PrintProviderErrorMockEnt&amp;gt; allErrors = new
ArrayList&amp;lt;PrintProviderErrorMockEnt&amp;gt;();
try {
allErrors = printProviderMockSBBeanLocal.getErrors();
for (Iterator iterator = allErrors.iterator(); iterator.hasNext();) {
PrintProviderErrorMockEnt printProviderErrorMockEnt =
(PrintProviderErrorMockEnt) iterator.next();
options.add(new Option(printProviderErrorMockEnt.getId(),
printProviderErrorMockEnt.getErrorCode() + " : "
+ printProviderErrorMockEnt.getName()));
}
} catch (SystemException e) {
// TODO show errorpage
logger.error(e.getMessage(), e);
}
return options;
}
});
exception.setDefaultOption(Option.EMPTY_OPTION);


When the user has selected a value and presses the submit button the value
is stored in database.
This same page is use&lt;/pre&gt;</description>
    <dc:creator>Kristian Lind</dc:creator>
    <dc:date>2013-05-16T18:31:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5128">
    <title>How to Render PDF Reports ?</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5128</link>
    <description>&lt;pre&gt;I am using DynamicReports (based on JasperReports) for creating PDF reports in Apache Click.  Some users want to display the PDF report in a web browser and other users want to display the PDF report in the PDF document viewer (e.g., Adobe Acrobat).  Using the following code the PDF report displays correctly in the browser when using IE, Chrome, and Firefox.  However, for the users that have their browsers configured to show PDFs outside of the browser, the PDF report only displays in the PDF document viewer when using IE.  Chrome and Firefox download a file with the wrong file extension (user-1.htm instead of user-1.pdf).

What is the proper code for getting the PDF report to display correctly both in a web browser or outside of the web browser depending on how the client has their browser configured to display PDFs?

///////////////////
        private static final long serialVersionUID = 1L;

        public User1Page() {
                Submit reportButton = new Submit("runReport", " Report ", this, "onRe&lt;/pre&gt;</description>
    <dc:creator>pvmalone&lt; at &gt;netzero.net</dc:creator>
    <dc:date>2013-05-16T15:24:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5127">
    <title>Re: Form problems.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5127</link>
    <description>&lt;pre&gt;Click will always follow it's life cycle. It onInit is used to build up the
page controls. If this step doesn't occur no processing or events would be
possible. In other words your onCancel won't fire.

Nothing stops you from conditionally reacting to state you receive from the
browser though ie. checking if printProviderMockEnt has a value or not.

Not sure from your question if you expect printProviderMockEnt to have a
value when submitting the form? If you want the value to be passed to the
page on subsequent submits you need to add it's value to the form through a
HiddenField.

regards

Bob

On Wed, May 15, 2013 at 3:45 AM, Kristian Lind &amp;lt;klindp&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-15T05:49:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5126">
    <title>Re: Form problems.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5126</link>
    <description>&lt;pre&gt;But I dont see any reason why the OnInit method should be called...
especially not on a cancel with a setRedirect

The problem that I am facing here is that my
&amp;lt; at &amp;gt;Bindable
private PrintProviderMockEnt printProviderMockEnt;

is binded first time i go to the page. And the OnInit method is called.

When pressing the submit button to save my changes... The binding is not
happening, and the printProviderMockEnt is null.

public class CustomerPrintProvider extends BorderedPage {
private static final Logger logger =
LoggerFactory.getLogger(CustomerPrintProvider.class);
private static final String PAGE_TITLE_CREATE = "Add Test Print Provider";
private static final String PAGE_TITLE_EDIT = "Edit Test Print Provider";

&amp;lt; at &amp;gt;Bindable
private PrintProviderMockEnt printProviderMockEnt;

private PrintProviderMockSBBeanLocal printProviderMockSBBeanLocal =
SessionBeanManager.getPrintProviderMockSBBeanLocal();
private DashboardSBBeanLocal dashboardSBBeanLocal =
SessionBeanManager.getDashboardSBBeanLocal();
private EditForm form;
p&lt;/pre&gt;</description>
    <dc:creator>Kristian Lind</dc:creator>
    <dc:date>2013-05-15T01:45:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5125">
    <title>Re: Form problems.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5125</link>
    <description>&lt;pre&gt;Hi Kris,

The page onInit() method is generally called, please see the sequence
diagram below for more info:

http://click.apache.org/docs/click-cheat-sheet.pdf

regards


On Wed, May 15, 2013 at 10:54 AM, Kristian Lind &amp;lt;klindp&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Malcolm Edgar</dc:creator>
    <dc:date>2013-05-15T01:28:14</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5124">
    <title>Form problems.</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5124</link>
    <description>&lt;pre&gt;Hi, I have a page with a Form, with submit and cancel buttons.

When I go to the page with a PageLink with OnInit method is called...
nice.. :)

But why is the OnInit method called when I press the submit button ?? and
even more strange, when I press the cancel button.

Best regards

Kris
&lt;/pre&gt;</description>
    <dc:creator>Kristian Lind</dc:creator>
    <dc:date>2013-05-15T00:54:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5123">
    <title>Re: configure velocity tools in click</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5123</link>
    <description>&lt;pre&gt;Please note the Click Format object is fairly equivalent to the
Velocity EscapeTool.
 You can readily extend this class, or use composition, to add the
EscapeTool functionality you need.

http://click.apache.org/docs/click-api/org/apache/click/util/Format.html

regards Malcolm Edgar

On Fri, Apr 26, 2013 at 4:29 PM, Bob Schellink &amp;lt;sabob1&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Malcolm Edgar</dc:creator>
    <dc:date>2013-05-14T12:43:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5122">
    <title>Re: Velocity templates &amp; Ajax</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5122</link>
    <description>&lt;pre&gt;Outstanding... both responses invoked excellent learning opportunities and
most importantly worked well.

Thanks,
Dan


On Tue, May 14, 2013 at 12:13 AM, Bob Schellink &amp;lt;sabob1&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:

&lt;/pre&gt;</description>
    <dc:creator>Daniel Ingalla</dc:creator>
    <dc:date>2013-05-14T06:24:18</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5121">
    <title>Re: Velocity templates &amp; Ajax</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5121</link>
    <description>&lt;pre&gt;Hi Dan,

The important bit is Context.renderTemplate which takes a template and
model and passes it to Velocity to render.

http://click.apache.org/docs/click-api/org/apache/click/Context.html#renderTemplate%28java.lang.String,%20java.util.Map%29

So you can also do:

    public ActionResult onMyPageAction() {
        String templatePath = "/path/to/template.htm";
        Map model = new HashMap();
        model.put("date", new Date());

       String html = getContext.renderTemplate(templatePath, model);

         return new ActionResult(html, ActionResult.HTML);
    }


Kind regards

Bob

On Tue, May 14, 2013 at 7:57 AM, Malcolm Edgar &amp;lt;malcolm.edgar&amp;lt; at &amp;gt;gmail.com&amp;gt;wrote:

&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-14T06:13:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5120">
    <title>Re: Velocity templates &amp; Ajax</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5120</link>
    <description>&lt;pre&gt;I would recommend using a Velocity template for the the AJAX content

Below is some example custom Title control with its own Velocity template.

import java.util.Map;

import org.apache.click.Context;
import org.apache.click.Page;
import org.apache.click.control.AbstractContainer;
import org.apache.click.dataprovider.DataProvider;
import org.apache.click.util.ClickUtils;
import org.apache.click.util.HtmlStringBuffer;

/**
 * Provides a Tile List control.
 */
&amp;lt; at &amp;gt;SuppressWarnings("rawtypes")
public class TileList extends AbstractContainer {

    private static final long serialVersionUID = 1L;

    // The tile data provider.
    private DataProvider dataProvider;

    // The tile data provider.
    private String tileTemplate;

    // Constructor
------------------------------------------------------------

    public TileList(String name) {
        setName(name);
    }

    // Public Methods
---------------------------------------------------------

    public DataProvider getDataProvider() {
        return da&lt;/pre&gt;</description>
    <dc:creator>Malcolm Edgar</dc:creator>
    <dc:date>2013-05-14T05:57:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5119">
    <title>Velocity templates &amp; Ajax</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5119</link>
    <description>&lt;pre&gt;Developers,

   First off- great work! I wish I would of found this framework earlier-
it is by far the quickest, easiest server-side java web framework I have
worked with thus far (Vaadin, Spring MVC and Struts included). I never
thought I could get a lightning fast dynamic web site up within a few hours
of reading the click tutorial... simply amazing and concise.

My question is this: is there any way to leverage html &amp;amp; velocity templates
when responding to an Ajax request... I really do not wish to do this:

    public ActionResult onMyPageAction(){

         StringBuilder html = new StringBuilder();
         html.append(
            " &amp;lt;p&amp;gt;Some really long html with tags and such.. etc,
etc...&amp;lt;/p&amp;gt;");
         return new ActionResult(html.toString(), ActionResult.HTML);
    }

I suppose it would be nice to programmatically load an html template, set
some model objects, run it through the velocity parser, and then return
that html output in the call.

Regards,
Dan
&lt;/pre&gt;</description>
    <dc:creator>Daniel Ingalla</dc:creator>
    <dc:date>2013-05-14T05:29:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.web.click.user/5118">
    <title>Re: Click i18n question</title>
    <link>http://permalink.gmane.org/gmane.comp.web.click.user/5118</link>
    <description>&lt;pre&gt;Hi Stephan,

Hmm I'm not sure. If you visit this example page, do you get English messages or German? On that 
page, if I switch my browser language to English I see English and for German I see German messages. 
Did you perhaps reconfigure Click in any way?

In your page you could also put a breakpoint and print out the value of getContext().getLocale() and 
confirm it is English.

http://click.avoka.com/click-examples/form/standard-controls-form.htm

Kind regards

Bob

On 2013/05/03 16:21, Kennedy, Stephan wrote:


&lt;/pre&gt;</description>
    <dc:creator>Bob Schellink</dc:creator>
    <dc:date>2013-05-04T13:43:28</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.web.click.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.web.click.user</link>
  </textinput>
</rdf:RDF>
