<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>click-dev@incubator.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/incubator-click-dev/</id>
<updated>2009-12-10T17:27:22Z</updated>
<entry>
<title>New Report schedule</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c4B1F2062.1070101@gmail.com%3e"/>
<id>urn:uuid:%3c4B1F2062-1070101@gmail-com%3e</id>
<updated>2009-12-09T03:58:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Malcolm,

We'll need to work out a report schedule with the board[1]. I know we have an upcoming board
report 
but not sure the exact date. In the incubator it was the second Wednesday of the month, guess
its 
the same as a TLP? I assume we forward the report directly to the board?

http://incubator.apache.org/guides/graduation.html#new-project-hand-over

bob


Bob Schellink wrote:
&gt; We have a couple of outstanding infra tasks for graduation:
&gt; 
&gt; - Create click.apache.org DNS entry
&gt; - Migrate mailing lists to @click.apache.org
&gt; - Migrate SVN to TLP
&gt; - Migrate JIRA to TLP
&gt; 
&gt; Malcolm, will you be able to take this up with infra?
&gt; 
&gt; We also need to submit a board report for next week Wednesday.
&gt; 
&gt; regards
&gt; 
&gt; bob
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: IntelliJ plugin</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c4B1F1DBA.2000202@gmail.com%3e"/>
<id>urn:uuid:%3c4B1F1DBA-2000202@gmail-com%3e</id>
<updated>2009-12-09T03:47:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This is great news. Its also nice to see IntelliJ having an open source version available as
well.

kind regards

bob

WarnerJan Veldhuis wrote:
&gt; 
&gt; Cool! I'll look at Hantsy's plugin as well to make sure I cover all the 
&gt; features. With 90% of the IDE's covered, Apache Click will reach a 
&gt; massive audience when all the three plugins are available!
&gt; 
&gt; Happy coding!
&gt; 
&gt; WarnerJan
&gt; 
&gt; 
&gt; 
&gt; On 07-Dec-09 17:23, Naoki Takezoe wrote:
&gt;&gt; Hi WarnerJan,
&gt;&gt;
&gt;&gt; Great!
&gt;&gt;
&gt;&gt; I knew Hantsy's NetBeans plugin similar to ClickIDE,
&gt;&gt; However I don't know about IntelliJ Click plugin.
&gt;&gt; http://hantsy.blogspot.com/2009/10/click-for-netbeans-plugin-10-is-avai.html 
&gt;&gt;
&gt;&gt;
&gt;&gt; I'm looking forward to your IntelliJ plugin.
&gt;&gt; And if your plugin has excellent features than ClickIDE,
&gt;&gt; I might make them in ClickIDE also.
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt;
&gt;&gt; 2009/12/7 WarnerJan Veldhuis&lt;warnerjan.veldhuis@qprcostcontrol.com&gt;:
&gt;&gt;   
&gt;&gt;&gt; Hello dev,
&gt;&gt;&gt;
&gt;&gt;&gt; I am currently working on an IntelliJ plugin for Apache Click 2.1.0, 
&gt;&gt;&gt; which
&gt;&gt;&gt; whould look and work the same as the Eclipse plugin. I just want to 
&gt;&gt;&gt; know if
&gt;&gt;&gt; any such effort exists, so I am not duplicating stuff.
&gt;&gt;&gt;
&gt;&gt;&gt; Also, Naoki Takezoe, do you mind if I make the plugin to look like 
&gt;&gt;&gt; what you
&gt;&gt;&gt; did for Eclipse?
&gt;&gt;&gt;
&gt;&gt;&gt; Cheers,
&gt;&gt;&gt;
&gt;&gt;&gt; WarnerJan
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;      
&gt;&gt;
&gt;&gt;
&gt;&gt;    
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: IntelliJ plugin</title>
<author><name>WarnerJan Veldhuis &lt;warnerjan.veldhuis@qprcostcontrol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c4B1D408C.3030102@qprcostcontrol.com%3e"/>
<id>urn:uuid:%3c4B1D408C-3030102@qprcostcontrol-com%3e</id>
<updated>2009-12-07T17:51:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Cool! I'll look at Hantsy's plugin as well to make sure I cover all the 
features. With 90% of the IDE's covered, Apache Click will reach a 
massive audience when all the three plugins are available!

Happy coding!

WarnerJan



On 07-Dec-09 17:23, Naoki Takezoe wrote:
&gt; Hi WarnerJan,
&gt;
&gt; Great!
&gt;
&gt; I knew Hantsy's NetBeans plugin similar to ClickIDE,
&gt; However I don't know about IntelliJ Click plugin.
&gt; http://hantsy.blogspot.com/2009/10/click-for-netbeans-plugin-10-is-avai.html
&gt;
&gt; I'm looking forward to your IntelliJ plugin.
&gt; And if your plugin has excellent features than ClickIDE,
&gt; I might make them in ClickIDE also.
&gt;
&gt; Regards,
&gt;
&gt; 2009/12/7 WarnerJan Veldhuis&lt;warnerjan.veldhuis@qprcostcontrol.com&gt;:
&gt;    
&gt;&gt; Hello dev,
&gt;&gt;
&gt;&gt; I am currently working on an IntelliJ plugin for Apache Click 2.1.0, which
&gt;&gt; whould look and work the same as the Eclipse plugin. I just want to know if
&gt;&gt; any such effort exists, so I am not duplicating stuff.
&gt;&gt;
&gt;&gt; Also, Naoki Takezoe, do you mind if I make the plugin to look like what you
&gt;&gt; did for Eclipse?
&gt;&gt;
&gt;&gt; Cheers,
&gt;&gt;
&gt;&gt; WarnerJan
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;      
&gt;
&gt;
&gt;    


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: IntelliJ plugin</title>
<author><name>Naoki Takezoe &lt;takezoe@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c285ca09a0912070823l79003178tf53b0e33f689e71@mail.gmail.com%3e"/>
<id>urn:uuid:%3c285ca09a0912070823l79003178tf53b0e33f689e71@mail-gmail-com%3e</id>
<updated>2009-12-07T16:23:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi WarnerJan,

Great!

I knew Hantsy's NetBeans plugin similar to ClickIDE,
However I don't know about IntelliJ Click plugin.
http://hantsy.blogspot.com/2009/10/click-for-netbeans-plugin-10-is-avai.html

I'm looking forward to your IntelliJ plugin.
And if your plugin has excellent features than ClickIDE,
I might make them in ClickIDE also.

Regards,

2009/12/7 WarnerJan Veldhuis &lt;warnerjan.veldhuis@qprcostcontrol.com&gt;:
&gt; Hello dev,
&gt;
&gt; I am currently working on an IntelliJ plugin for Apache Click 2.1.0, which
&gt; whould look and work the same as the Eclipse plugin. I just want to know if
&gt; any such effort exists, so I am not duplicating stuff.
&gt;
&gt; Also, Naoki Takezoe, do you mind if I make the plugin to look like what you
&gt; did for Eclipse?
&gt;
&gt; Cheers,
&gt;
&gt; WarnerJan
&gt;
&gt;
&gt;



-- 
Naoki Takezoe


</pre>
</div>
</content>
</entry>
<entry>
<title>IntelliJ plugin</title>
<author><name>WarnerJan Veldhuis &lt;warnerjan.veldhuis@qprcostcontrol.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c4B1CE21F.10002@qprcostcontrol.com%3e"/>
<id>urn:uuid:%3c4B1CE21F-10002@qprcostcontrol-com%3e</id>
<updated>2009-12-07T11:08:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello dev,

I am currently working on an IntelliJ plugin for Apache Click 2.1.0, 
which whould look and work the same as the Eclipse plugin. I just want 
to know if any such effort exists, so I am not duplicating stuff.

Also, Naoki Takezoe, do you mind if I make the plugin to look like what 
you did for Eclipse?

Cheers,

WarnerJan




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: menu isUserInRole impl</title>
<author><name>Malcolm Edgar &lt;malcolm.edgar@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c525d8e10912061902r3c372e48kfdad40c01278519d@mail.gmail.com%3e"/>
<id>urn:uuid:%3c525d8e10912061902r3c372e48kfdad40c01278519d@mail-gmail-com%3e</id>
<updated>2009-12-07T03:02:28Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think in terms of the method name this is correct behaviour. If
there are not roles defined, then I dont think it is correct to say
the user belongs to the empty set of roles.

Making this change could impact existing applications in unexpected ways.

You can always write you menu macro to test for the menu.getRoles().isEmpty()

regards Malcolm Edgar

On Sun, Nov 29, 2009 at 1:18 PM, Bob Schellink &lt;sabob1@gmail.com&gt; wrote:
&gt; Hi all,
&gt;
&gt; If a menu doesn't define any roles, isUserInRoles will return false. I
&gt; wonder if this is the correct default. Wouldn't it be better to return true
&gt; if no roles are defined? Otherwise one will have to define an anonymous role
&gt; and set it on these menus.
&gt;
&gt; regards
&gt;
&gt; bob
&gt;
&gt;
&gt; Proposed change:
&gt;
&gt;  public boolean isUserInRoles() {
&gt;    // PROPOSED CHANGE START
&gt;    List roles = getRoles();
&gt;    if (roles == null || roles.isEmpty()) {
&gt;      return true;
&gt;    }
&gt;    // END
&gt;
&gt;    if (getAccessController() == null) {
&gt;      String msg = "Menu accessController has not been defined";
&gt;      throw new IllegalStateException(msg);
&gt;    }
&gt;
&gt;    HttpServletRequest request = getContext().getRequest();
&gt;
&gt;    for (int i = 0, size = roles.size(); i &lt; size; i++) {
&gt;      String rolename = (String) roles.get(i);
&gt;      if (getAccessController().hasAccess(request, rolename)) {
&gt;        return true;
&gt;      }
&gt;    }
&gt;
&gt;    return false;
&gt;  }
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Outstanding infra issues</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200912.mbox/%3c4B161F9B.1070602@gmail.com%3e"/>
<id>urn:uuid:%3c4B161F9B-1070602@gmail-com%3e</id>
<updated>2009-12-02T08:04:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
We have a couple of outstanding infra tasks for graduation:

- Create click.apache.org DNS entry
- Migrate mailing lists to @click.apache.org
- Migrate SVN to TLP
- Migrate JIRA to TLP

Malcolm, will you be able to take this up with infra?

We also need to submit a board report for next week Wednesday.

regards

bob


</pre>
</div>
</content>
</entry>
<entry>
<title>menu isUserInRole impl</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c4B11D9F0.2010000@gmail.com%3e"/>
<id>urn:uuid:%3c4B11D9F0-2010000@gmail-com%3e</id>
<updated>2009-11-29T02:18:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

If a menu doesn't define any roles, isUserInRoles will return false. I wonder if this is the
correct 
default. Wouldn't it be better to return true if no roles are defined? Otherwise one will
have to 
define an anonymous role and set it on these menus.

regards

bob


Proposed change:

   public boolean isUserInRoles() {
     // PROPOSED CHANGE START
     List roles = getRoles();
     if (roles == null || roles.isEmpty()) {
       return true;
     }
     // END

     if (getAccessController() == null) {
       String msg = "Menu accessController has not been defined";
       throw new IllegalStateException(msg);
     }

     HttpServletRequest request = getContext().getRequest();

     for (int i = 0, size = roles.size(); i &lt; size; i++) {
       String rolename = (String) roles.get(i);
       if (getAccessController().hasAccess(request, rolename)) {
         return true;
       }
     }

     return false;
   }



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (CLK-597) Update to unreleased Velocity 1.6.3 to fix performance issue</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1258425086.1259122599625.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1258425086-1259122599625-JavaMail-jira@brutus%3e</id>
<updated>2009-11-25T04:16:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Update to unreleased Velocity 1.6.3 to fix performance issue
------------------------------------------------------------

                 Key: CLK-597
                 URL: https://issues.apache.org/jira/browse/CLK-597
             Project: Click
          Issue Type: Bug
          Components: core
    Affects Versions: 2.1.0 RC1
            Reporter: Bob Schellink
            Assignee: Bob Schellink
             Fix For: 2.1.0


A recent issue was raised against Velocity 1.6.2 which invokes the variable toString method
when checking if a variable exists or not.

Thus the following snippet would invoke the Table's toString method twice:

  #if ($table)
    $table
  #end

This can have quite a large impact on performance. This issue[1] was recently solved in Velocity
by introducing a runtime property that sets behavior back to the old default.

However Velocity 1.6.2 is not released yet but we can switch to the unreleased 1.6.3 in the
meantime.

[1]:https://issues.apache.org/jira/browse/VELOCITY-731

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: picklist</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c4B0A400B.5060902@gmail.com%3e"/>
<id>urn:uuid:%3c4B0A400B-5060902@gmail-com%3e</id>
<updated>2009-11-23T07:55:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks James, I've added IDs to the buttons as you suggested[1].

kind regards

bob

[1]: 
http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.htm?r1=788391&amp;r2=883265&amp;diff_format=h

james_sg wrote:
&gt; Hi Bob,
&gt; 
&gt; When the user clicks on a Add Row button, a javascript function for the form
&gt; table will be called to do something like the following:
&gt; 
&gt; 1) clone the last row of the form table
&gt; 2) get all select, input, img &amp; button fields from the cloned row, and
&gt; rename the attributes according. I also need to reassign the functions for
&gt; the control buttons in the picklist. If there are 2 picklists in the row, i
&gt; would have 2 buttons with the same name as &lt;,&lt;&lt;,&gt; or &gt;&gt;. Without an
id
&gt; value, I would not know which picklist the control buttons belongs to.
&gt; 3) append the clone row
&gt; 
&gt; Regards,
&gt; James



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (CLK-596) Update commons collection to 3.2.1</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c833108675.1258962759778.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c833108675-1258962759778-JavaMail-jira@brutus%3e</id>
<updated>2009-11-23T07:52:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-596.
-------------------------------

    Resolution: Fixed

fixed in trunk

&gt; Update commons collection to 3.2.1
&gt; ----------------------------------
&gt;
&gt;                 Key: CLK-596
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-596
&gt;             Project: Click
&gt;          Issue Type: Task
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: Bob Schellink
&gt;            Assignee: Bob Schellink
&gt;            Priority: Minor
&gt;             Fix For: 2.1.0
&gt;
&gt;
&gt; Update commons collection to 3.2.1. Velocity pom has dependency on this version of CC.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (CLK-590) Scriptaculous contains alert</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1926480022.1258962639648.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1926480022-1258962639648-JavaMail-jira@brutus%3e</id>
<updated>2009-11-23T07:50:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-590.
-------------------------------

    Resolution: Fixed

&gt; Scriptaculous contains alert
&gt; ----------------------------
&gt;
&gt;                 Key: CLK-590
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-590
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: extras
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: WarnerJan Veldhuis
&gt;            Assignee: Bob Schellink
&gt;            Priority: Trivial
&gt;             Fix For: 2.1.0
&gt;
&gt;
&gt; The scriptaculous.js script contains an alert on line 51. I assume this is old-school
debugging and should be commented by default.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: picklist</title>
<author><name>james_sg &lt;snowmedal@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1258884009146-4045631.post@n2.nabble.com%3e"/>
<id>urn:uuid:%3c1258884009146-4045631-post@n2-nabble-com%3e</id>
<updated>2009-11-22T10:00:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi Bob,

When the user clicks on a Add Row button, a javascript function for the form
table will be called to do something like the following:

1) clone the last row of the form table
2) get all select, input, img &amp; button fields from the cloned row, and
rename the attributes according. I also need to reassign the functions for
the control buttons in the picklist. If there are 2 picklists in the row, i
would have 2 buttons with the same name as &lt;,&lt;&lt;,&gt; or &gt;&gt;. Without an id
value, I would not know which picklist the control buttons belongs to.
3) append the clone row

Regards,
James
-- 
View this message in context: http://n2.nabble.com/picklist-tp4045362p4045631.html
Sent from the click-development mailing list archive at Nabble.com.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: picklist</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c4B08E2D9.6060906@gmail.com%3e"/>
<id>urn:uuid:%3c4B08E2D9-6060906@gmail-com%3e</id>
<updated>2009-11-22T07:06:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi James,

Sure, I don't see why not. But from your example I'm not sure why you need it though? The
buttons 
are only used to copy values between the Selects, its not used server side. And since the
buttons do 
not have an ID, you can have multiple buttons per row, they won't clash.

I'm probably not seeing the issue just yet. :)

kind regards

bob

james_sg wrote:
&gt; Hi,
&gt; 
&gt; I have extended the formtable to allow adding/removal of rows using
&gt; javascript. The javascript function will change the id and name of the
&gt; fields in each row when necessary. However, the control buttons  in a
&gt; picklist field doesn't have id values. So I cannot include more than one
&gt; picklist in each row.
&gt; 
&gt; Hence, I would like to propose adding an id value to each of the control
&gt; button in the picklist control. 
&gt; 
&gt; Regards,
&gt; James



</pre>
</div>
</content>
</entry>
<entry>
<title>picklist</title>
<author><name>james_sg &lt;snowmedal@hotmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1258872428762-4045362.post@n2.nabble.com%3e"/>
<id>urn:uuid:%3c1258872428762-4045362-post@n2-nabble-com%3e</id>
<updated>2009-11-22T06:47:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I have extended the formtable to allow adding/removal of rows using
javascript. The javascript function will change the id and name of the
fields in each row when necessary. However, the control buttons  in a
picklist field doesn't have id values. So I cannot include more than one
picklist in each row.

Hence, I would like to propose adding an id value to each of the control
button in the picklist control. 

Regards,
James
-- 
View this message in context: http://n2.nabble.com/picklist-tp4045362p4045362.html
Sent from the click-development mailing list archive at Nabble.com.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [ANNOUNCE] Apache Click</title>
<author><name>Malcolm Edgar &lt;malcolm.edgar@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c525d8e10911210206r1bbe94f6lb1cfb7f0e056cc66@mail.gmail.com%3e"/>
<id>urn:uuid:%3c525d8e10911210206r1bbe94f6lb1cfb7f0e056cc66@mail-gmail-com%3e</id>
<updated>2009-11-21T10:06:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Great news all.

regards Malcolm Edgar

On Sat, Nov 21, 2009 at 8:54 PM, Hantsy Bai &lt;hantsy@gmail.com&gt; wrote:
&gt; On 11/21/2009 04:50 PM, Bob Schellink wrote:
&gt;&gt; Apache Click has graduated!
&gt;&gt;
&gt;&gt; Earlier this week the Apache board has established Click as a new
&gt;&gt; top-level project.
&gt;&gt;
&gt;&gt; We will be migrating the website and mailing lists to their new
&gt;&gt; locations in the coming days. Subscribers to the incubator mail lists
&gt;&gt; will automatically be migrated to the new lists, there is no need to
&gt;&gt; resubscribe.
&gt;&gt;
&gt;&gt; kind regards
&gt;&gt;
&gt;&gt; bob
&gt;&gt;
&gt; Congratulations!
&gt;
&gt;
&gt; Best regards
&gt;
&gt; --
&gt; Hantsy Bai
&gt; Guangzhou, China
&gt; http://hantsy.blogspot.com
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Apache Click</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c4B07A9D2.40909@gmail.com%3e"/>
<id>urn:uuid:%3c4B07A9D2-40909@gmail-com%3e</id>
<updated>2009-11-21T08:50:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Apache Click has graduated!

Earlier this week the Apache board has established Click as a new top-level project.

We will be migrating the website and mailing lists to their new locations in the coming days.

Subscribers to the incubator mail lists will automatically be migrated to the new lists, there
is no 
need to resubscribe.

kind regards

bob


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Fwd: ASF Board Meeting Summary - November 18, 2009</title>
<author><name>Bob Schellink &lt;sabob1@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c4B0674D1.8050901@gmail.com%3e"/>
<id>urn:uuid:%3c4B0674D1-8050901@gmail-com%3e</id>
<updated>2009-11-20T10:52:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This is fantastic news.

Congratulations to the newly elected PMC members and Malcolm Edgar as our PMC Chair. Also
thanks to 
our mentors, Henning, Will, Andrus and Ted who guided us through the process.

Exciting times ahead.

kind regards

bob


Andrus Adamchik wrote:
&gt;&gt;  B. Establish the Apache Click Project (CMalcolm Edgar, VP)
&gt; 
&gt; Congrats to the Click community - you are an official Apache project 
&gt; now! :-)
&gt; 
&gt; Andrus
&gt; 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ASF Board Meeting Summary - November 18, 2009</title>
<author><name>Malcolm Edgar &lt;malcolm.edgar@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c525d8e10911191355h4356f4faxaf3c97286c7416d3@mail.gmail.com%3e"/>
<id>urn:uuid:%3c525d8e10911191355h4356f4faxaf3c97286c7416d3@mail-gmail-com%3e</id>
<updated>2009-11-19T21:55:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Great news guys, thanks for your support, and special thanks to Bob
for all his hard work over the last year.

regards Malcolm Edgar

On Fri, Nov 20, 2009 at 1:04 AM, Will Glass-Husain
&lt;wglasshusain@gmail.com&gt; wrote:
&gt; +1 !!
&gt;
&gt; On Thu, Nov 19, 2009 at 5:32 AM, Andrus Adamchik &lt;andrus@objectstyle.org&gt; wrote:
&gt;&gt;&gt;  B. Establish the Apache Click Project (CMalcolm Edgar, VP)
&gt;&gt;
&gt;&gt; Congrats to the Click community - you are an official Apache project now!
&gt;&gt; :-)
&gt;&gt;
&gt;&gt; Andrus
&gt;&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: ASF Board Meeting Summary - November 18, 2009</title>
<author><name>Will Glass-Husain &lt;wglasshusain@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c2f8a5bd60911190604i44d4c417tbda7fd2da7720102@mail.gmail.com%3e"/>
<id>urn:uuid:%3c2f8a5bd60911190604i44d4c417tbda7fd2da7720102@mail-gmail-com%3e</id>
<updated>2009-11-19T14:04:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
+1 !!

On Thu, Nov 19, 2009 at 5:32 AM, Andrus Adamchik &lt;andrus@objectstyle.org&gt; wrote:
&gt;&gt;  B. Establish the Apache Click Project (CMalcolm Edgar, VP)
&gt;
&gt; Congrats to the Click community - you are an official Apache project now!
&gt; :-)
&gt;
&gt; Andrus
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Fwd: ASF Board Meeting Summary - November 18, 2009</title>
<author><name>Andrus Adamchik &lt;andrus@objectstyle.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c5A1A93AE-1F24-4062-A3FD-0FC7C4418374@objectstyle.org%3e"/>
<id>urn:uuid:%3c5A1A93AE-1F24-4062-A3FD-0FC7C4418374@objectstyle-org%3e</id>
<updated>2009-11-19T13:32:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
&gt;  B. Establish the Apache Click Project (CMalcolm Edgar, VP)

Congrats to the Click community - you are an official Apache project  
now! :-)

Andrus


</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (CLK-596) Update commons collection to 3.2.1</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1445427279.1258625380899.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1445427279-1258625380899-JavaMail-jira@brutus%3e</id>
<updated>2009-11-19T10:09:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Update commons collection to 3.2.1
----------------------------------

                 Key: CLK-596
                 URL: https://issues.apache.org/jira/browse/CLK-596
             Project: Click
          Issue Type: Task
          Components: core
    Affects Versions: 2.1.0 RC1
            Reporter: Bob Schellink
            Assignee: Bob Schellink
            Priority: Minor
             Fix For: 2.1.0


Update commons collection to 3.2.1. Velocity pom has dependency on this version of CC.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c219627627.1258024599752.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c219627627-1258024599752-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T11:16:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776952#action_12776952
] 

Bob Schellink commented on CLK-595:
-----------------------------------

No need, I've already updated the status.

&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;             Fix For: 2.2.0
&gt;
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Stefax (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c209560286.1258024599766.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c209560286-1258024599766-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T11:16:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776953#action_12776953
] 

Stefax commented on CLK-595:
----------------------------

Excuse me, I only see now that you have still changed the type to new feature... :)


&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;             Fix For: 2.2.0
&gt;
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Stefax (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c101947422.1258024359574.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c101947422-1258024359574-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T11:12:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776948#action_12776948
] 

Stefax commented on CLK-595:
----------------------------

Perfect! Have I to resubmit this issue as a new Feature request?
Thanks for your help!

&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;             Fix For: 2.2.0
&gt;
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Reopened: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c866096491.1258021179723.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c866096491-1258021179723-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T10:19:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink reopened CLK-595:
-------------------------------


&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;             Fix For: 2.2.0
&gt;
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c75457075.1258021179709.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c75457075-1258021179709-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T10:19:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink updated CLK-595:
------------------------------

    Fix Version/s: 2.2.0
       Issue Type: New Feature  (was: Bug)

Ok, instead of filing this as a bug, lets make it a new feature: add setLabelStyle / setLabelStyleClass
methods on Field.

&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;             Fix For: 2.2.0
&gt;
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Stefax (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1923868841.1258020279559.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1923868841-1258020279559-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T10:04:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12776936#action_12776936
] 

Stefax commented on CLK-595:
----------------------------

Styling margin is something usual and would be nice that the label associated to a field inherit
that settings.
I think that would be useful if the field itself can set the style of its label with a method
like setLabelStyle as the one of the form.
Thinking that all the label in the form must have the same style (form.setLabelStyle()) is
a questionable choice, not convenient for web programming.
I like click framework and I find it very easy to use, so I hope that we can find a solution
convenient for the users and the developers.

&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1340230419.1258016379646.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1340230419-1258016379646-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T08:59:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink closed CLK-595.
-----------------------------

    Resolution: Won't Fix

This is not a bug. The Label is set by the Form and does not apply the Field styles to the
label. 

If you need fine grain control you can style the field and label using CSS selectors or if
that doesn't work, use manual layout or a custom Form.

&gt; Can't apply to TextField label the same style as the one assigned to the Control
&gt; --------------------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-595
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-595
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: tomcat on linux
&gt;            Reporter: Stefax
&gt;
&gt; I need to set the same margin-bottom to the TextFiled and its label, but when I call
the method setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
&gt; TextField cld = new TextField("cld", "My Text Field: ");
&gt;  cld.setSize(20);
&gt; cld.setRequired(false);
&gt; cld.setStyle("margin-bottom", "20px");            
&gt; form.add(cld);
&gt; the resultant html code (generated putting $form in the html) is:
&gt; &lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&gt; &lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20"
style="margin-bottom:20px;"/&gt;&lt;/td&gt;
&gt; As you can see the style is applied to the intput text, but not to its label.
&gt; This generate a very ugly page, where all the label are rendered not near the fields
they refer to.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (CLK-594) click-nodeps has incorrect dependencies in pom</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c6572645.1258015179810.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c6572645-1258015179810-JavaMail-jira@brutus%3e</id>
<updated>2009-11-12T08:39:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-594.
-------------------------------

    Resolution: Duplicate

Thanks Victor, this has been fixed as CLK-593.

&gt; click-nodeps has incorrect dependencies in pom
&gt; ----------------------------------------------
&gt;
&gt;                 Key: CLK-594
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-594
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: extras
&gt;    Affects Versions: 2.1.0 RC1
&gt;         Environment: Apache Maven 2.2.1 (rdebian-1)
&gt; Java version: 1.6.0_15
&gt; Java home: /usr/lib/jvm/java-6-sun-1.6.0.15/jre
&gt; Default locale: en_AU, platform encoding: UTF-8
&gt; OS name: "linux" version: "2.6.31-14-generic-pae" arch: "i386" Family: "unix"
&gt;            Reporter: Victor Leung
&gt;            Priority: Minor
&gt;   Original Estimate: 0.08h
&gt;  Remaining Estimate: 0.08h
&gt;
&gt; When click-extras is added to the project pom, Maven reports the following error:
&gt; Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.6.2/velocity-1.6.2.pom
&gt; [INFO] Unable to find resource 'velocity:velocity:pom:1.6.2' in repository central (http://repo1.maven.org/maven2)
&gt; Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.6.2/velocity-1.6.2.jar
&gt; [INFO] Unable to find resource 'velocity:velocity:jar:1.6.2' in repository central (http://repo1.maven.org/maven2)
&gt; [INFO] ------------------------------------------------------------------------
&gt; [ERROR] BUILD ERROR
&gt; [INFO] ------------------------------------------------------------------------
&gt; [INFO] Failed to resolve artifact.
&gt; In click-nodeps-2.1.0-RC1-incubating.pom, the velocity dependency is incorrectly listed
as:
&gt; &lt;dependency&gt;
&gt; &lt;groupId&gt;velocity&lt;/groupId&gt;
&gt; &lt;artifactId&gt;velocity&lt;/artifactId&gt;
&gt; &lt;version&gt;1.6.2&lt;/version&gt;
&gt; &lt;/dependency&gt;
&gt; Changing the groupId to "org.apache.velocity" resolves the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (CLK-595) Can't apply to TextField label the same style as the one assigned to the Control</title>
<author><name>&quot;Stefax (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1598279248.1257953859598.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1598279248-1257953859598-JavaMail-jira@brutus%3e</id>
<updated>2009-11-11T15:37:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Can't apply to TextField label the same style as the one assigned to the Control
--------------------------------------------------------------------------------

                 Key: CLK-595
                 URL: https://issues.apache.org/jira/browse/CLK-595
             Project: Click
          Issue Type: Bug
          Components: core
    Affects Versions: 2.1.0 RC1
         Environment: tomcat on linux
            Reporter: Stefax


I need to set the same margin-bottom to the TextFiled and its label, but when I call the method
setStyle("margin-bottom", "20px") of the TextField, it does not set the same margin/style
to its label; for the java code:
TextField cld = new TextField("cld", "My Text Field: ");
 cld.setSize(20);
cld.setRequired(false);
cld.setStyle("margin-bottom", "20px");            
form.add(cld);

the resultant html code (generated putting $form in the html) is:

&lt;td class="fields" align="left"&gt;&lt;label for="form_cld"&gt;My Text Field: &lt;/label&gt;&amp;#160;&lt;/td&gt;
&lt;td align="left"&gt;&lt;input type="text" name="cld" id="form_cld" value="" size="20" style="margin-bottom:20px;"/&gt;&lt;/td&gt;

As you can see the style is applied to the intput text, but not to its label.

This generate a very ugly page, where all the label are rendered not near the fields they
refer to.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (CLK-594) click-nodeps has incorrect dependencies in pom</title>
<author><name>&quot;Victor Leung (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c682990791.1257944559672.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c682990791-1257944559672-JavaMail-jira@brutus%3e</id>
<updated>2009-11-11T13:02:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
click-nodeps has incorrect dependencies in pom
----------------------------------------------

                 Key: CLK-594
                 URL: https://issues.apache.org/jira/browse/CLK-594
             Project: Click
          Issue Type: Bug
          Components: extras
    Affects Versions: 2.1.0 RC1
         Environment: Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_15
Java home: /usr/lib/jvm/java-6-sun-1.6.0.15/jre
Default locale: en_AU, platform encoding: UTF-8
OS name: "linux" version: "2.6.31-14-generic-pae" arch: "i386" Family: "unix"
            Reporter: Victor Leung
            Priority: Minor


When click-extras is added to the project pom, Maven reports the following error:

Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.6.2/velocity-1.6.2.pom
[INFO] Unable to find resource 'velocity:velocity:pom:1.6.2' in repository central (http://repo1.maven.org/maven2)
Downloading: http://repo1.maven.org/maven2/velocity/velocity/1.6.2/velocity-1.6.2.jar
[INFO] Unable to find resource 'velocity:velocity:jar:1.6.2' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.


In click-nodeps-2.1.0-RC1-incubating.pom, the velocity dependency is incorrectly listed as:

&lt;dependency&gt;
&lt;groupId&gt;velocity&lt;/groupId&gt;
&lt;artifactId&gt;velocity&lt;/artifactId&gt;
&lt;version&gt;1.6.2&lt;/version&gt;
&lt;/dependency&gt;

Changing the groupId to "org.apache.velocity" resolves the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (CLK-593) The velocity dependency definition  in click-nodeps pom is incorretly.</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c2059988692.1257583292404.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2059988692-1257583292404-JavaMail-jira@brutus%3e</id>
<updated>2009-11-07T08:41:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink closed CLK-593.
-----------------------------

    Resolution: Fixed

Thanks Hantsy, this has already been fixed in trunk.

&gt; The velocity dependency definition  in click-nodeps pom is incorretly.
&gt; ----------------------------------------------------------------------
&gt;
&gt;                 Key: CLK-593
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-593
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: hantsy bai
&gt;
&gt; The velocity dependency definition  in click-nodeps pom is incorretly.
&gt; After 1.6, the groupId may be is org.apache.velocity , not velocity.
&gt; So the correct definition maybe like the following:
&gt;  &lt;dependency&gt;
&gt;             &lt;groupId&gt;org.apache.velocity&lt;/groupId&gt;
&gt;             &lt;artifactId&gt;velocity&lt;/artifactId&gt;
&gt;             &lt;version&gt;1.6.2&lt;/version&gt;
&gt;  &lt;/dependency&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (CLK-593) The velocity dependency definition  in click-nodeps pom is incorretly.</title>
<author><name>&quot;hantsy bai (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c542023827.1257582692441.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c542023827-1257582692441-JavaMail-jira@brutus%3e</id>
<updated>2009-11-07T08:31:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The velocity dependency definition  in click-nodeps pom is incorretly.
----------------------------------------------------------------------

                 Key: CLK-593
                 URL: https://issues.apache.org/jira/browse/CLK-593
             Project: Click
          Issue Type: Bug
          Components: core
    Affects Versions: 2.1.0 RC1
            Reporter: hantsy bai


The velocity dependency definition  in click-nodeps pom is incorretly.
After 1.6, the groupId may be is org.apache.velocity , not velocity.
So the correct definition maybe like the following:
 &lt;dependency&gt;
            &lt;groupId&gt;org.apache.velocity&lt;/groupId&gt;
            &lt;artifactId&gt;velocity&lt;/artifactId&gt;
            &lt;version&gt;1.6.2&lt;/version&gt;
 &lt;/dependency&gt;


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-564) Add ResourceService for serving static resources</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1613690762.1257509372428.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1613690762-1257509372428-JavaMail-jira@brutus%3e</id>
<updated>2009-11-06T12:09:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12774278#action_12774278
] 

Bob Schellink commented on CLK-564:
-----------------------------------

Hi Malcolm,

I've checked in a change to the ClickResourceService to serve resources lazily. This has some
advantages over eager loading:

- resources won't be loaded if they are not requested. This resolves the issue with eager
loading where all resources from jars are loaded, even if some of those resources aren't valid
static resources, for example Velocity templates with extensions other than .htm.

- removed all duplicate code shared with XmlConfigService

- with lazy loading it was easy to add the ability to only cache resources in production modes

The only feature still outstanding is how to handle the case where Velocity attempts to render
a template contained under META-INF/resources. Currently the VelocityTemplateService caters
for two built in templates, but won't handle custom templates. I suppose we can cross that
bridge when we get there.


&gt; Add ResourceService for serving static resources
&gt; ------------------------------------------------
&gt;
&gt;                 Key: CLK-564
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-564
&gt;             Project: Click
&gt;          Issue Type: New Feature
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: Malcolm Edgar
&gt;            Assignee: Malcolm Edgar
&gt;             Fix For: 2.1.0
&gt;
&gt;         Attachments: report_1.html, report_2.html, report_3.html
&gt;
&gt;
&gt; The Click static resource deployment strategy of writing *.htm, *.css and image files
to the web application /click/ directory does not work on all application servers. In particular
WebLogic and WebSphere have security restrictions which prevent this from occuring. In these
scenarios users are have to deploy these applications to the WAR file at build time.  Google
GAE also does not support this deployment mode.
&gt; A solution to this problem is to use the ClickServlet to serve these resources. By adding
an additional web.xml mapping:
&gt; 	&lt;servlet-mapping&gt;
&gt; 		&lt;servlet-name&gt;ClickServlet&lt;/servlet-name&gt;
&gt; 		&lt;url-pattern&gt;/click/*&lt;/url-pattern&gt;
&gt; 	&lt;/servlet-mapping&gt;
&gt; The ClickServlet could use a ResourceService interface obtained from the ConfigService
which returns the resource data. A default ClickResourceService would be provided which loads
all the resources at application initialization time. This service would scan all the JAR
files for resources in META-INF/web as is currently done in XmlConfigService and would cache
them in memory. The service would also scan all the resources under the WAR /click/ directory.
These resources would override any defined in the application JAR files.
&gt; This could be a good feature for 2.1.0, we should possibly delay the 2.1.0 RC release
to include this feature.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Resolved: (CLK-589) Resources not deployed on JBoss5 and up</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1906676771.1257506612403.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1906676771-1257506612403-JavaMail-jira@brutus%3e</id>
<updated>2009-11-06T11:23:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink resolved CLK-589.
-------------------------------

    Resolution: Fixed

I've checked in a fix based on the Stripes solution[1] mentioned above. Containers tested
include: JBoss 4, 5, 5.1, Tomcat 6, Jetty 6, WAS 7, WebLogic 10, Glassfish 2.

[1]: https://stripes.svn.sourceforge.net/svnroot/stripes/branches/1.5.x/stripes/src/net/sourceforge/stripes/util/ResolverUtil.java

&gt; Resources not deployed on JBoss5 and up
&gt; ---------------------------------------
&gt;
&gt;                 Key: CLK-589
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-589
&gt;             Project: Click
&gt;          Issue Type: Bug
&gt;          Components: core
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: Bob Schellink
&gt;            Assignee: Bob Schellink
&gt;            Priority: Blocker
&gt;             Fix For: 2.1.0
&gt;
&gt;
&gt; Deploying the click-examples failed on JBoss5.1 because of their new Virtual File System
implementation. We might have similar issues on other containers.
&gt; Other frameworks are struggling with the same issue:
&gt;   Spring: http://jira.springframework.org/browse/SPR-5120
&gt;   Struts2: https://issues.apache.org/struts/browse/WW-3181
&gt;   Stripes: http://www.stripesframework.org/jira/browse/STS-655
&gt; The good folks at Stripes seem to have a solution (holding thumbs) which we could adapt
for deploying resources.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (CLK-591) I18N for Menu control</title>
<author><name>&quot;Malcolm Edgar (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c1427837932.1257287916133.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1427837932-1257287916133-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T22:38:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/CLK-591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12773254#action_12773254
] 

Malcolm Edgar commented on CLK-591:
-----------------------------------

Agree with this issue and approach.  The menu in addition to the label property has a title
property, and an imageSrc property which could also benefit from localization.  If we use
the convention used with other controls we can support internationalization as well

menu_logoff.label=Log Off
menu-logoff.title=Logout of the application
menu-logoff.imageSrc=/assets/images/logoff.gif

To do this we would need to introduce the name into the Menu control to follow this convention.

&gt; I18N for Menu control
&gt; ---------------------
&gt;
&gt;                 Key: CLK-591
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-591
&gt;             Project: Click
&gt;          Issue Type: Sub-task
&gt;          Components: extras
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: WarnerJan Veldhuis
&gt;            Priority: Minor
&gt;
&gt; Menu is not I18N-able. I have created a patch that fixes that. Here's an example of how
to set a messagekey in menu.xml, that corresponds to an item in the messageresources.
&gt; The message attribute tells the menu which key should be used to get the text from the
message resources. (The $path variable can be used as well, since I adjusted the writeMenu
VM macro to use: #evaluate($submenu) instead of $submenu itself. Velocity now supports #evaluate
to evaluate a string that contains VM directives )
&gt; &lt;menu&gt;
&gt;     &lt;menu label="Home" path="/home.htm"&gt;
&gt;         &lt;menu message="menu_logoff" path="$path?actionLink=logoff" roles="SU, DU,
VU, WU"/&gt;
&gt;     &lt;/menu&gt;
&gt; &lt;/menu&gt;
&gt; The setParent method is overridden because the parent is needed to access the page's
message resources. It will also recursively descend into the children as well. Once you add
the menu to the page using Page.addControl(Menu.getRootMenu(new MyAccessController())); the
page is set as parent for all menuitems.
&gt; Attribute message takes precedence over attribute label. If both are set, message is
the attribute used. 
&gt; So there you go. I18N for Menu :)
&gt; Index: Menu.java
&gt; ===================================================================
&gt; --- Menu.java	(revision 831895)
&gt; +++ Menu.java	(working copy)
&gt; @@ -244,6 +244,9 @@
&gt;      /** The menu display label. */
&gt;      protected String label;
&gt;  
&gt; +    /** The message key to be used from the click-controls.properties or click-page.properties
*/
&gt; +    protected String messageKey;
&gt; +    
&gt;      /**
&gt;       * The list of valid page paths. If any of these page paths match the
&gt;       * current request then the Menu item will be selected.
&gt; @@ -335,7 +338,9 @@
&gt;          setAccessController(accessController);
&gt;  
&gt;          setLabel(menuElement.getAttribute("label"));
&gt; -
&gt; +        
&gt; +        setMessageKey(menuElement.getAttribute("message"));
&gt; +        
&gt;          setImageSrc(menuElement.getAttribute("imageSrc"));
&gt;  
&gt;          setPath(menuElement.getAttribute("path"));
&gt; @@ -846,12 +851,20 @@
&gt;  
&gt;                  buffer.elementEnd();
&gt;  
&gt; -                if (getLabel() != null) {
&gt; +                if ( StringUtils.isNotBlank(getMessageKey())) {
&gt; +                    buffer.append(getMessage(getMessageKey()));
&gt; +                }
&gt; +                else if (getLabel() != null) {
&gt;                      buffer.append(getLabel());
&gt;                  }
&gt;  
&gt;              } else {
&gt; -                buffer.append(getLabel());
&gt; +                if (StringUtils.isNotBlank(getMessageKey())) {
&gt; +                    buffer.append(getMessage(getMessageKey()));
&gt; +                }
&gt; +                else {
&gt; +                    buffer.append(getLabel());
&gt; +                }
&gt;              }
&gt;  
&gt;              buffer.elementEnd("a");
&gt; @@ -947,4 +960,23 @@
&gt;          return menu;
&gt;      }
&gt;  
&gt; +    public String getMessageKey() {
&gt; +        return messageKey;
&gt; +    }
&gt; +
&gt; +    public void setMessageKey(String messageKey) {
&gt; +        this.messageKey = messageKey;
&gt; +    }
&gt; +
&gt; +    /**
&gt; +     * @see org.apache.click.Control#setParent(Object)
&gt; +     * Sets the parent for this menu. This will automatically set the parent for the
children as well. 
&gt; +     * @param parent The parent
&gt; +     */
&gt; +    public void setParent(Object parent) {
&gt; +        super.setParent(parent);
&gt; +        for (Object child : children) {
&gt; +            ((Menu) child).setParent(parent);
&gt; +        }
&gt; +    }
&gt;  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (CLK-405) Menu improvements - allow setting the cache strategy.</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c828285035.1257254459419.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c828285035-1257254459419-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T13:20:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink updated CLK-405:
------------------------------

    Issue Type: Sub-task  (was: Improvement)
        Parent: CLK-592

&gt; Menu improvements - allow setting the cache strategy.
&gt; -----------------------------------------------------
&gt;
&gt;                 Key: CLK-405
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-405
&gt;             Project: Click
&gt;          Issue Type: Sub-task
&gt;          Components: extras
&gt;            Reporter: Demetrios Kyriakis
&gt;
&gt; Please improve the Menu Control, by allowing the user to set the chache stragety.
&gt; Right now the cache strategy seems to be "application" (or JVM instance) only.
&gt; This is very limiting, making the existing Menu Control useless for most user applications,
thus forcing the users
&gt; to make their own menu controls (or the hack the original one).
&gt; Please allow setting the cache strategy also to "session", and "request" (or "page" if
the page is stateful).
&gt; (even if the default remains to "application"  - the ensure the compatibility with existing
applications).
&gt; Thank you,
&gt; Demetrios.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (CLK-591) I18N for Menu control</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c2054767107.1257254459675.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2054767107-1257254459675-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T13:20:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-591?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink updated CLK-591:
------------------------------

    Issue Type: Sub-task  (was: Wish)
        Parent: CLK-592

&gt; I18N for Menu control
&gt; ---------------------
&gt;
&gt;                 Key: CLK-591
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-591
&gt;             Project: Click
&gt;          Issue Type: Sub-task
&gt;          Components: extras
&gt;    Affects Versions: 2.1.0 RC1
&gt;            Reporter: WarnerJan Veldhuis
&gt;            Priority: Minor
&gt;
&gt; Menu is not I18N-able. I have created a patch that fixes that. Here's an example of how
to set a messagekey in menu.xml, that corresponds to an item in the messageresources.
&gt; The message attribute tells the menu which key should be used to get the text from the
message resources. (The $path variable can be used as well, since I adjusted the writeMenu
VM macro to use: #evaluate($submenu) instead of $submenu itself. Velocity now supports #evaluate
to evaluate a string that contains VM directives )
&gt; &lt;menu&gt;
&gt;     &lt;menu label="Home" path="/home.htm"&gt;
&gt;         &lt;menu message="menu_logoff" path="$path?actionLink=logoff" roles="SU, DU,
VU, WU"/&gt;
&gt;     &lt;/menu&gt;
&gt; &lt;/menu&gt;
&gt; The setParent method is overridden because the parent is needed to access the page's
message resources. It will also recursively descend into the children as well. Once you add
the menu to the page using Page.addControl(Menu.getRootMenu(new MyAccessController())); the
page is set as parent for all menuitems.
&gt; Attribute message takes precedence over attribute label. If both are set, message is
the attribute used. 
&gt; So there you go. I18N for Menu :)
&gt; Index: Menu.java
&gt; ===================================================================
&gt; --- Menu.java	(revision 831895)
&gt; +++ Menu.java	(working copy)
&gt; @@ -244,6 +244,9 @@
&gt;      /** The menu display label. */
&gt;      protected String label;
&gt;  
&gt; +    /** The message key to be used from the click-controls.properties or click-page.properties
*/
&gt; +    protected String messageKey;
&gt; +    
&gt;      /**
&gt;       * The list of valid page paths. If any of these page paths match the
&gt;       * current request then the Menu item will be selected.
&gt; @@ -335,7 +338,9 @@
&gt;          setAccessController(accessController);
&gt;  
&gt;          setLabel(menuElement.getAttribute("label"));
&gt; -
&gt; +        
&gt; +        setMessageKey(menuElement.getAttribute("message"));
&gt; +        
&gt;          setImageSrc(menuElement.getAttribute("imageSrc"));
&gt;  
&gt;          setPath(menuElement.getAttribute("path"));
&gt; @@ -846,12 +851,20 @@
&gt;  
&gt;                  buffer.elementEnd();
&gt;  
&gt; -                if (getLabel() != null) {
&gt; +                if ( StringUtils.isNotBlank(getMessageKey())) {
&gt; +                    buffer.append(getMessage(getMessageKey()));
&gt; +                }
&gt; +                else if (getLabel() != null) {
&gt;                      buffer.append(getLabel());
&gt;                  }
&gt;  
&gt;              } else {
&gt; -                buffer.append(getLabel());
&gt; +                if (StringUtils.isNotBlank(getMessageKey())) {
&gt; +                    buffer.append(getMessage(getMessageKey()));
&gt; +                }
&gt; +                else {
&gt; +                    buffer.append(getLabel());
&gt; +                }
&gt;              }
&gt;  
&gt;              buffer.elementEnd("a");
&gt; @@ -947,4 +960,23 @@
&gt;          return menu;
&gt;      }
&gt;  
&gt; +    public String getMessageKey() {
&gt; +        return messageKey;
&gt; +    }
&gt; +
&gt; +    public void setMessageKey(String messageKey) {
&gt; +        this.messageKey = messageKey;
&gt; +    }
&gt; +
&gt; +    /**
&gt; +     * @see org.apache.click.Control#setParent(Object)
&gt; +     * Sets the parent for this menu. This will automatically set the parent for the
children as well. 
&gt; +     * @param parent The parent
&gt; +     */
&gt; +    public void setParent(Object parent) {
&gt; +        super.setParent(parent);
&gt; +        for (Object child : children) {
&gt; +            ((Menu) child).setParent(parent);
&gt; +        }
&gt; +    }
&gt;  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (CLK-407) Menu improvements - more properties: enable/disable, show/hide</title>
<author><name>&quot;Bob Schellink (JIRA)&quot; &lt;jira@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/incubator-click-dev/200911.mbox/%3c853848883.1257254459588.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c853848883-1257254459588-JavaMail-jira@brutus%3e</id>
<updated>2009-11-03T13:20:59Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/CLK-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bob Schellink updated CLK-407:
------------------------------

    Issue Type: Sub-task  (was: Improvement)
        Parent: CLK-592

&gt; Menu improvements - more properties: enable/disable, show/hide 
&gt; ---------------------------------------------------------------
&gt;
&gt;                 Key: CLK-407
&gt;                 URL: https://issues.apache.org/jira/browse/CLK-407
&gt;             Project: Click
&gt;          Issue Type: Sub-task
&gt;          Components: extras
&gt;            Reporter: Demetrios Kyriakis
&gt;            Assignee: Adrian A.
&gt;
&gt; Please improve the Menu Control, by allowing the user to show/hide menu items, and also
to enable/disable them.
&gt; Right now, this is not possible at all with the Menu Control :(.
&gt; This is very limiting, making the existing Menu Control useless for most user applications,
thus forcing the users
&gt; to make their own menu controls (or the hack the original one). 
&gt; There's no need for these properties to be present in menu.xml, since their role is mostly
at runtime:
&gt; - enable/disable would allow to enable or disable a menu item (so to show it but make
it unclickable).
&gt; - show/hide would allow to to show and hide menu items (of course if the user doesn't
have a specific role, the menu will be hidden).
&gt; Regarding the API, it would be important to have practical methods for hiding and disabling
menu items:
&gt; something like Menu#hide(Menu item) would not be very practical since in most cases the
"item" reference is not present
&gt; so it should be Menu#hide(String path), and when applied, to seach this in the children
items too.
&gt; Another improvement would be if the Menu Click control would use Link Controls for the
items (since that's what they are).
&gt; Thank you,
&gt; Demetrios.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



</pre>
</div>
</content>
</entry>
</feed>
