<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>user@beehive.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/beehive-user/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/beehive-user/"/>
<id>http://mail-archives.apache.org/mod_mbox/beehive-user/</id>
<updated>2009-12-06T15:25:44Z</updated>
<entry>
<title>Re: Invoking an action via an HTML Button without submitting the form</title>
<author><name>Ivan Ivankovic &lt;ivankoi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200910.mbox/%3cfa26a35c0910010036x36789918gddb4db2d626c5374@mail.gmail.com%3e"/>
<id>urn:uuid:%3cfa26a35c0910010036x36789918gddb4db2d626c5374@mail-gmail-com%3e</id>
<updated>2009-10-01T07:36:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Well instead of binding your HTML form elements to FormBean, you can make
properties in your PageController that holds the action methods. You can
reference them from your JSP (the one with the form) with *
pageFlow.propertyName*.

Having two methods, one for each action, in your PageController and a
propertiy for each form filed, in the same controller, should do the job.

Of course if I understood your probelm :)

Reagrds,
Ivan

On Wed, Sep 30, 2009 at 5:56 PM, deck &lt;jmshaver@gmail.com&gt; wrote:

&gt;
&gt; I am trying to invoke a PageFlow action via an html button.  I am curious
&gt; to
&gt; know if there is a way to invoke the action without Beehive requireing the
&gt; Form Bean as an input parameter for the action.
&gt;
&gt; Basically, I have an HTML form which has two buttons, one submits the form
&gt; to an action which processes the input and performs some task.  The other I
&gt; want to simply cancel the operation and invokes another action which
&gt; navigates to a different part of the application.
&gt;
&gt; Is there anyway I can use an HTML button to invoke an action without
&gt; beehive
&gt; requiring the form bean as an input parameter?
&gt;
&gt; Right now I get an exception thrown for each form element:
&gt;
&gt; Throwable: java.lang.RuntimeException: Can not update the identifier
&gt; "accountType" on a null value object.
&gt;
&gt;
&gt; Any ideas?
&gt; --
&gt; View this message in context:
&gt; http://www.nabble.com/Invoking-an-action-via-an-HTML-Button-without-submitting-the-form-tp25683932p25683932.html
&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;
&gt;


-- 
Pozdrav,
Ivanko


</pre>
</div>
</content>
</entry>
<entry>
<title>Invoking an action via an HTML Button without submitting the form</title>
<author><name>deck &lt;jmshaver@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200909.mbox/%3c25683932.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c25683932-post@talk-nabble-com%3e</id>
<updated>2009-09-30T15:56:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I am trying to invoke a PageFlow action via an html button.  I am curious to
know if there is a way to invoke the action without Beehive requireing the
Form Bean as an input parameter for the action. 

Basically, I have an HTML form which has two buttons, one submits the form
to an action which processes the input and performs some task.  The other I
want to simply cancel the operation and invokes another action which
navigates to a different part of the application.

Is there anyway I can use an HTML button to invoke an action without beehive
requiring the form bean as an input parameter?

Right now I get an exception thrown for each form element:

Throwable: java.lang.RuntimeException: Can not update the identifier
"accountType" on a null value object.


Any ideas?
-- 
View this message in context: http://www.nabble.com/Invoking-an-action-via-an-HTML-Button-without-submitting-the-form-tp25683932p25683932.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Force rendering of NetUI Tree</title>
<author><name>Ivan Ivankovic &lt;ivankoi@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200909.mbox/%3cfa26a35c0909250902s18fb962k8859c38dc756c985@mail.gmail.com%3e"/>
<id>urn:uuid:%3cfa26a35c0909250902s18fb962k8859c38dc756c985@mail-gmail-com%3e</id>
<updated>2009-09-25T16:02:37Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I am using Custom Tree Render in order to mark some Tree Elements with CSS
style using &lt;span&gt; tag. The problem is that when I submit some form that
lays besides the tree that action changes the status of some TreeElements,
but their rendered the same and their visual style consequently stays the
same. It seems that there is some caching going one that prevents Tree
Element to be rendered with new style.

In order to make this style change visible, I have to collapse the tree and
expand it again. After that it is refreshed.

Since this is pragmatically created tree on server and the form is submitted
to the PagesFlow that has the reference to the tree, is there a way to force
the tree to re-render so the changes become visible immediately after
submitting the form.

Regards,
Ivanko


</pre>
</div>
</content>
</entry>
<entry>
<title>Initialize datagrid sort order</title>
<author><name>Sebastien ARBOGAST &lt;sebastien.arbogast@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200908.mbox/%3ca753b7f80908030231u70d0648fx9c70ed42938f04cc@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca753b7f80908030231u70d0648fx9c70ed42938f04cc@mail-gmail-com%3e</id>
<updated>2009-08-03T09:31:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm using NetUI in a Weblogic Portal 10.2 portlet and I'm trying to make
sure my datagrid has a default order.
Hence the following begin action:

@Jpf.Action(
        forwards={
           @Jpf.Forward(name="index", action = "sortOpenCalls")
        }
    )
    protected Forward begin()
    {
        Forward forward = new Forward("index");

        //by default, order by descending date
        DataGridConfig config = DataGridConfigFactory.getInstance();
        Sort sortDate = config.createSort();
        sortDate.setDirection(SortDirection.DESCENDING);
        sortDate.setSortExpression("latestInformationIssueDate");
        List&lt;Sort&gt; sorts = Arrays.asList(new Sort[]{
            sortDate
        });
        SortModel sortModel = config.createSortModel(sorts);
        DataGridState dataGridState =
DataGridStateFactory.getInstance(getRequest()).getDataGridState("openCallsGrid");
        dataGridState.setSortModel(sortModel);

        return forward;
    }

Then the sortOpenCalls action loads the data and actually applies the sort:

@Jpf.Action(forwards = { @Jpf.Forward(name = "success", path =
"BrowseOpenCalls.jsp", actionOutputs = { @Jpf.ActionOutput(name =
"openCalls", type = eu.europa.ec.digit.cap.portal.dto.CallListItem[].class,
required = true), @Jpf.ActionOutput(name = "latestDatesOfCallPublications",
type = java.util.Date[].class, required = true) }) })
    public Forward sortOpenCalls() {
        Forward forward = new Forward("success");

        DataGridState dataGridState =
DataGridStateFactory.getInstance(getRequest()).getDataGridState("openCallsGrid");
        List&lt;Sort&gt; sorts = dataGridState.getSortModel().getSorts();
        List&lt;Comparator&gt; comparators = new ArrayList&lt;Comparator&gt;();
        if(sorts != null){
            for(final Sort sort:sorts){
                comparators.add(new Comparator(){
                    public int compare(Object o1, Object o2) {
                        try {
                            if(sort.getDirection() == SortDirection.NONE){
                                return 0;
                            } else if(sort.getDirection() ==
SortDirection.ASCENDING){
                                return BeanUtils.getSimpleProperty(o1,
sort.getSortExpression()).compareTo(BeanUtils.getSimpleProperty(o2,
sort.getSortExpression()));
                            } else if(sort.getDirection() ==
SortDirection.DESCENDING){
                                return -BeanUtils.getSimpleProperty(o1,
sort.getSortExpression()).compareTo(BeanUtils.getSimpleProperty(o2,
sort.getSortExpression()));
                            } else return 0;
                        } catch (IllegalAccessException e) {
                            return 0;
                        } catch (InvocationTargetException e) {
                            return 0;
                        } catch (NoSuchMethodException e) {
                            return 0;
                        }
                    }

                });
            }
        }

        CallListItem[] openCalls = callService.getOpenCalls();

        if(comparators.isEmpty()){
            forward.addActionOutput("openCalls", openCalls);
        } else {
            List&lt;CallListItem&gt; sortedOpenCalls = new
ArrayList(Arrays.asList(openCalls));
            Collections.sort(sortedOpenCalls,
ComparatorUtils.chainedComparator(comparators));
            forward.addActionOutput("openCalls", sortedOpenCalls.toArray(new
CallListItem[0]));
        }

        Date[] dates = callService.getLatestDatesOfCallPublications();
        forward.addActionOutput("latestDatesOfCallPublications", dates);

        return forward;
    }

Unfortunately, when the portlet loads, it is well sorted by
latestInformationIssueDate BUT in ASCENDING order instead of DESCENDING
order.
Any idea what I did wrong?

Sébastien Arbogast

http://sebastien-arbogast.com
http://mooplan.com


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Enum Netui Converter</title>
<author><name>&quot;Eddie O'Neil&quot; &lt;ekoneil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200907.mbox/%3ce9ac83540907011848x13ad4933paf28d3789032881e@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce9ac83540907011848x13ad4933paf28d3789032881e@mail-gmail-com%3e</id>
<updated>2009-07-02T01:48:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
  Hi, Justin -- unfortunately, NetUI doesn't support the base Enum
type in Java without explicitly listing all of the enums explicitly.

Cheers,
Eddie

On Mon, Feb 2, 2009 at 3:10 PM, jnt30&lt;justin.r.nauman+nabble@gmail.com&gt; wrote:
&gt;
&gt; The question I have is in regards to type converters and binding enums.
&gt;
&gt; I have seen other postings about enum conversion and the necessity to create
&gt; type converters for String -&gt; enum.  I have been able to successfully
&gt; declare a type converter for String -&gt; enum, however I would like to be able
&gt; to create a more generic type converter that will convert between a String
&gt; to any enum.  Is it possible to declare a type converter for anything other
&gt; than the explicit class defined in the beehive-netui-config.xml file?
&gt;
&gt; Thanks in advance,
&gt; Justin
&gt; --
&gt; View this message in context: http://www.nabble.com/Enum-Netui-Converter-tp21798448p21798448.html
&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Display scrollbar for datagrid rows</title>
<author><name>&quot;Eddie O'Neil&quot; &lt;ekoneil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200907.mbox/%3ce9ac83540907011847t19917b8neaf4d6ee8a5e5e49@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce9ac83540907011847t19917b8neaf4d6ee8a5e5e49@mail-gmail-com%3e</id>
<updated>2009-07-02T01:47:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
  Hey -- IIRC, displaying a scrollbar inside of &lt;div/&gt; is hard to do
across browsers; I think getting it to work is a CSS hack in which
case, this might help:

  http://www.hesido.com/web.php?page=customscrollbar

Eddie


On Sat, Apr 25, 2009 at 6:27 AM, intis&lt;srinu.inti@gmail.com&gt; wrote:
&gt;
&gt; Hi
&gt;
&gt; Need to display scrollbar for the the datagrid rows, not for the headercells
&gt; and the footer.
&gt;
&gt; I tried by giving div for datagrid:rows, but actual alignment is losing.
&gt;
&gt; please help me in this !!!!!!!!!!!!!!!
&gt;
&gt;
&gt; Thanks for your quick response....
&gt;
&gt;
&gt;
&gt; --
&gt; View this message in context: http://www.nabble.com/Display-scrollbar-for-datagrid-rows-tp23231567p23231567.html
&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Showing empty rows when no data in datagrid</title>
<author><name>&quot;Eddie O'Neil&quot; &lt;ekoneil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200907.mbox/%3ce9ac83540907011843k30051568p3194e7c69853d33e@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce9ac83540907011843k30051568p3194e7c69853d33e@mail-gmail-com%3e</id>
<updated>2009-07-02T01:43:55Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
  Hey, this is a good question and something that the &lt;netui:dataGrid&gt;
should support; unfortunately it's not a feature that's supported
today and likely won't be something that is added unless you want to
submit a patch. :)

  One way to "fake" it is to pass the dataGrid an empty data structure
that you could detect when the columns render, for example by using
JSTL inside of the &lt;rows&gt; tag to know that the items are some kind of
marker that says that the data set contains no data.

  Hope that helps; apologies for the delayed reply.

Eddie

On Sat, Apr 25, 2009 at 6:23 AM, intis&lt;srinu.inti@gmail.com&gt; wrote:
&gt;
&gt; Hi,
&gt;
&gt; I wanted to show minimum rows in the datagrid:rows irrespective of the data.
&gt; for example, pagesize is 20, i have only 4 records in my pageflow object.
&gt; this case, datagrid rows should show 20 rows by filling 4 actual records and
&gt; rest 16 should be empty rows.
&gt;
&gt; Please help in the same..if you u have the solution........
&gt;
&gt;
&gt; Thanks in Advance
&gt;
&gt;
&gt; --
&gt; View this message in context: http://www.nabble.com/Showing-empty-rows-when-no-data-in-datagrid-tp23231530p23231530.html
&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: netui:select optionsDataSource cannot be set</title>
<author><name>John L &lt;leboldusj@saic.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200906.mbox/%3c23932375.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c23932375-post@talk-nabble-com%3e</id>
<updated>2009-06-08T21:20:42Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

This has been cleared up, but the solution is unsatisfying.

I pulled (nearly) everything from the page and put in this line:

&lt;netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber"
optionsDataSource="${pageFlow.acvListMap}" nullable="true" /&gt;

it ran.
I added everything in the page line by line, I ran and re-ran it, waiting
for it to start failing. When it was exactly the same as when I started
(confirmed with a diff) it still ran.

I have to assume that it was some kind of eclipse/weblogic
clean-build-deploy problem.

Hope this saves some trouble for somebody else someday
-- 
View this message in context: http://www.nabble.com/netui%3Aselect-optionsDataSource-cannot-be-set-tp23751452p23932375.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>netui:select optionsDataSource cannot be set</title>
<author><name>John L &lt;leboldusj@saic.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200905.mbox/%3c23751452.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c23751452-post@talk-nabble-com%3e</id>
<updated>2009-05-27T21:51:04Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hello Beehive - User Forum!
I'm new to Beehive and I'm having a problem that I hope someone here can
help me out with.  I'm sure it has a simple solution, but what that solution
is, I don't know.

I'm trying to upgrade from Weblogic portal 8.1 to 10.3 and I'm using
Oracle's Workshop for WebLogic 10.3 (it's eclipse 3.3)

I've got the following line in a jsp

&lt;netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber"
optionsDataSource="pageFlow.acvListMap" nullable="true"/&gt;

it produces this html

&lt;input type="hidden"
name="wlw-select_key:{pageFlow.selectedEditAcvListSequenceNumber}OldValue"
value="true"&gt;
&lt;select name="wlw-select_key:{pageFlow.selectedEditAcvListSequenceNumber}"&gt;
&lt;option value="pageFlow.acvListMap"&gt;pageFlow.acvListMap&lt;/option&gt;
&lt;option value="netui_null" selected&gt;&lt;/option&gt;
&lt;/select&gt;

So it takes the value of optionsDataSource and makes it an option.  I
checked the documentation here:
http://beehive.apache.org/docs/1.0/apidocs/taglib/beehive.apache.org/netui/tags-html-1.0/select.html
(I also looked at the 1.0.2 javadoc, it seemed the same)

and so I changed the line to:
&lt;netui:select dataSource="pageFlow.selectedEditAcvListSequenceNumber"
optionsDataSource="${pageFlow.acvListMap}" nullable="true"/&gt;

this failed with this error to the browser:

Static attribute must be a String literal, its illegal to specify an
expression.
                    &lt;netui:select
dataSource="pageFlow.selectedEditAcvListSequenceNumber"
optionsDataSource="${pageFlow.acvListMap}" nullable="true"/&gt;


and a similar error in the console.

I've tried to change the JSTL facet, but eclipse won't let me, I've tried to
explicitly set the jsp to interpret EL.  I've tried a lot of things that I
can't recall.

Does anyone have any ideas?

-- 
View this message in context: http://www.nabble.com/netui%3Aselect-optionsDataSource-cannot-be-set-tp23751452p23751452.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Display scrollbar for datagrid rows</title>
<author><name>intis &lt;srinu.inti@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200904.mbox/%3c23231567.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c23231567-post@talk-nabble-com%3e</id>
<updated>2009-04-25T12:27:34Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi

Need to display scrollbar for the the datagrid rows, not for the headercells
and the footer.

I tried by giving div for datagrid:rows, but actual alignment is losing.

please help me in this !!!!!!!!!!!!!!!


Thanks for your quick response....



-- 
View this message in context: http://www.nabble.com/Display-scrollbar-for-datagrid-rows-tp23231567p23231567.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Showing empty rows when no data in datagrid</title>
<author><name>intis &lt;srinu.inti@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200904.mbox/%3c23231530.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c23231530-post@talk-nabble-com%3e</id>
<updated>2009-04-25T12:23:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I wanted to show minimum rows in the datagrid:rows irrespective of the data.
for example, pagesize is 20, i have only 4 records in my pageflow object.
this case, datagrid rows should show 20 rows by filling 4 actual records and
rest 16 should be empty rows.

Please help in the same..if you u have the solution........


Thanks in Advance


-- 
View this message in context: http://www.nabble.com/Showing-empty-rows-when-no-data-in-datagrid-tp23231530p23231530.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Eclipse Plug-ins for Beehive</title>
<author><name>&quot;Eddie O'Neil&quot; &lt;ekoneil@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200903.mbox/%3ce9ac83540903021638l29fb51e5l880834059e14dc10@mail.gmail.com%3e"/>
<id>urn:uuid:%3ce9ac83540903021638l29fb51e5l880834059e14dc10@mail-gmail-com%3e</id>
<updated>2009-03-03T00:38:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
  Hi, Justin; as far as I know, there unfortunately aren't any Eclipse
plugins that are being actively developed which support Beehive
development.

Hope that helps.
Eddie


On Mon, Mar 2, 2009 at 10:32 AM, jnt30 &lt;justin.r.nauman.spam@gmail.com&gt; wrote:
&gt;
&gt; We are currently wanting to upgrade to Eclipse 3.4 instead of 3.2 but are
&gt; unable to fully move over due to the lack of Beehive functionality in the
&gt; new Weblogic Workshop.
&gt;
&gt; I was wondering if there was a site to download eclipse plug-ins that
&gt; duplicate some of the functionality that Workshop offers in regards to
&gt; beehive?
&gt;
&gt; Thanks for your time,
&gt; Justin N.
&gt; Chicago, IL
&gt; --
&gt; View this message in context: http://www.nabble.com/Eclipse-Plug-ins-for-Beehive-tp22292566p22292566.html
&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Eclipse Plug-ins for Beehive</title>
<author><name>jnt30 &lt;justin.r.nauman.spam@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200903.mbox/%3c22292566.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c22292566-post@talk-nabble-com%3e</id>
<updated>2009-03-02T17:32:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

We are currently wanting to upgrade to Eclipse 3.4 instead of 3.2 but are
unable to fully move over due to the lack of Beehive functionality in the
new Weblogic Workshop.  

I was wondering if there was a site to download eclipse plug-ins that
duplicate some of the functionality that Workshop offers in regards to
beehive?

Thanks for your time, 
Justin N.
Chicago, IL 
-- 
View this message in context: http://www.nabble.com/Eclipse-Plug-ins-for-Beehive-tp22292566p22292566.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>&lt;netui:errors/&gt; message order. Please help</title>
<author><name>gautam roy &lt;groy_subscription@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200902.mbox/%3c785518.35935.qm@web111115.mail.gq1.yahoo.com%3e"/>
<id>urn:uuid:%3c785518-35935-qm@web111115-mail-gq1-yahoo-com%3e</id>
<updated>2009-02-27T10:02:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
I have several text box and text areas that need simple validation. I am using &lt;netui:errors/&gt;
to display the validation error messages. But the order is not as in my JSP page. The error
messages are like:
 
SSH username is required
Dist prefix is required.
.............
 
Here is my JSP page:
&lt;!-- Error message start --&gt;
&lt;netui:errors/&gt;
&lt;!-- Error message end --&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class="subheadorange"&gt; SSH credentials &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;This information should be provided by network administrator.&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="top"&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="3"&gt;
&lt;tr&gt;
&lt;td width="10%" align="right"&gt;SSH Username:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.sshUserName" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td align="right"&gt;SSH Password:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.sshPassword" styleClass="text"
password="true"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right"&gt;SSH Hostname:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.sshHostName" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right"&gt;SSH Port:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.sshPort" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class="subheadorange"&gt; Customizable Text &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr valign="top"&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="3"&gt;
&lt;tr&gt;
&lt;td width="10%" align="right"&gt;Help Text1:&lt;br&gt;(512 Characters)&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textArea dataSource="actionForm.helpText1" rows="4" style="width:
400px; font-size: 11px;" /&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td width="10%" align="right"&gt;Help Text2:&lt;br&gt;(512 Characters)&lt;/td&gt;
&lt;td&gt;&lt;netui:textArea dataSource="actionForm.helpText2" rows="4" style="width: 400px;
font-size: 11px;" onKeyPress="return maxLength(this,event,'512')"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width="10%" align="right"&gt;Help Text3:&lt;br&gt;(512 Characters)&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textArea dataSource="actionForm.helpText3" rows="4" style="width:
400px; font-size: 11px;" /&gt;&lt;/td&gt;
&lt;/tr&gt; 
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span class="subheadorange"&gt;Naming conventions &lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr valign="top"&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;

&lt;td&gt;
&lt;table width="100%" border="0" cellpadding="0" cellspacing="3"&gt;

&lt;tr&gt;
&lt;td width="10%" align="right"&gt;District prefix:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.distPrefix" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right"&gt;District suffix:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.distSuffix" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right"&gt;School prefix:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.schlPrefix" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="right"&gt;School sufix:&lt;/td&gt;
&lt;td align="left"&gt;&lt;netui:textBox dataSource="actionForm.schlSuffix" styleClass="text"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width="50%" align="left" border="0" cellpadding="0" cellspacing="0"&gt;
&lt;tr&gt;
&lt;td&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td align="left"&gt;
&lt;netui:imageButton src="${pageContext.request.contextPath}/resources/images/btn-submit-wht.gif"
align="absmiddle" alt="Submit"/&gt;
&lt;netui:imageButton src="${pageContext.request.contextPath}/resources/images/btn-clear-gry.gif"
align="absmiddle" alt="Reset" onClick="clearCustomConfiguration();return false;"/&gt;
&lt;netui:imageButton src="${pageContext.request.contextPath}/resources/images/btn-cancel-wht.gif"
align="absmiddle" alt="Cancel" onClick="cancelCustomConfiguration();return false;"/&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/netui:form&gt;
 
And my form is:
@Jpf.FormBean(messageBundle = "resources.messages")
 public static class CustomConfigForm implements java.io.Serializable {
  
  private static final long serialVersionUID = -3981463030514779499L;
  
  private String sshUserName;
  private String sshPassword;
  private String sshHostName;
  private String sshPort;
  
  private String helpText1;
  private String helpText2;
  private String helpText3;
  
  private String distPrefix;
  private String distSuffix;
  private String schlPrefix;
  private String schlSuffix;
  
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.username",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getSshUserName() {
   return sshUserName;
  }
  public void setSshUserName(String sshUserName) {
   this.sshUserName = sshUserName;
  }
  
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.password",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getSshPassword() {
   return sshPassword;
  }
  public void setSshPassword(String sshPassword) {
   this.sshPassword = sshPassword;
  }
  
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.host",
   validateRequired = @Jpf.ValidateRequired
  )
  public String getSshHostName() {
   return sshHostName;
  }
  public void setSshHostName(String sshHostName) {
   this.sshHostName = sshHostName;
  }
  
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.port",
   validateRequired = @Jpf.ValidateRequired,
   validateType = @Jpf.ValidateType(type = int.class)
  )
  public String getSshPort() {
   return sshPort;
  }
  public void setSshPort(String sshPort) {
   this.sshPort = sshPort;
  }
  
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.help1",
   validateRequired = @Jpf.ValidateRequired,
   validateMaxLength = @Jpf.ValidateMaxLength(chars = 512)
  )
  public String getHelpText1() {
   return helpText1;
  }
  public void setHelpText1(String helpText1) {
   this.helpText1 = helpText1;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.help1",
   validateMaxLength = @Jpf.ValidateMaxLength(chars = 512)
  )
  public String getHelpText2() {
   return helpText2;
  }
  public void setHelpText2(String helpText2) {
   this.helpText2 = helpText2;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.help1",
   validateMaxLength = @Jpf.ValidateMaxLength(chars = 512)
  )
  public String getHelpText3() {
   return helpText3;
  }
  public void setHelpText3(String helpText3) {
   this.helpText3 = helpText3;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.distprefix",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getDistPrefix() {
   return distPrefix;
  }
  public void setDistPrefix(String distPrefix) {
   this.distPrefix = distPrefix;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.distsuffix",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getDistSuffix() {
   return distSuffix;
  }
  public void setDistSuffix(String distSuffix) {
   this.distSuffix = distSuffix;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.schoolprefix",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getSchlPrefix() {
   return schlPrefix;
  }
  public void setSchlPrefix(String schlPrefix) {
   this.schlPrefix = schlPrefix;
  }
  @Jpf.ValidatableProperty(
   displayNameKey = "displayname.schoolsuffix",
   validateRequired = @Jpf.ValidateRequired()
  )
  public String getSchlSuffix() {
   return schlSuffix;
  }
  public void setSchlSuffix(String schlSuffix) {
   this.schlSuffix = schlSuffix;
  }
 }
 
 
 


      

</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Context param question</title>
<author><name>&quot;Robert Read&quot; &lt;r.read@auckland.ac.nz&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200902.mbox/%3cAC3DC202DD1DF2409C475795C7FF9A0D01C06ED2@UXCHANGE2.UoA.auckland.ac.nz%3e"/>
<id>urn:uuid:%3cAC3DC202DD1DF2409C475795C7FF9A0D01C06ED2@UXCHANGE2-UoA-auckland-ac-nz%3e</id>
<updated>2009-02-12T03:36:11Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi again,

 

I am hoping someone has the time to look into this problem I posted
yesterday or has some experience in this area.

 

I would appreciate any input.

 

Thanks again,

Robert

 

Robert Read,

Analyst Programmer,

ITS Group Applications,

The University of Auckland.

 

Ph +64 9 923 2475

Ext 82475

Email r.read@auckland.ac.nz

Web www.auckland.ac.nz

 

________________________________

From: Robert Read 
Sent: Wednesday, 11 February 2009 9:08 p.m.
To: user@beehive.apache.org
Subject: FW: Context param question

 

Hi all,

 

I have written a Custom Beehive Control that wraps the J2SSH Java
library for obtaining an SSH connection and SFTP session with a remote
host for the purpose of transferring a file.  The new control implements
PGP authentication against the remote server using a public/private
key-pair.

 

This works fine between my desktop and an in-house remote host when the
values for the host, port #, user, path to the keyfile, passphrase etc.
are hard-coded.

 

I have parameterised these values so that the control can be configured
externally and I am attempting to use the
http://beehive.apache.org/docs/1.0.1/controls/apidocs/javadoc/org/apache
/beehive/controls/runtime/servlet/ServletBeanContext.html
&lt;http://beehive.apache.org/docs/1.0.1/controls/apidocs/javadoc/org/apach
e/beehive/controls/runtime/servlet/ServletBeanContext.html&gt;  to gain a
reference to the ServletContext and get the values for the parameters
from context-param entries in the web.xml config file by calling
getInitParameter(String name) on the ServletContext.

 

The Beehive documentation states that defining a reference in the
Control implementation class and annotating it @Context will suffice for
its initialisation, but I get the following stack trace:

 

Exception in sendFile
org.apache.beehive.controls.api.ControlException: Control initialization
failure[org.apache.beehive.controls.api.ControlException: Contextual
service org.apache.beehive.controls.runtime.servlet.ServletBeanContext
is not available]
Caused by: org.apache.beehive.controls.api.ControlException: Contextual
service org.apache.beehive.controls.runtime.servlet.ServletBeanContext
is not available
    ... 40 more
at
org.apache.beehive.controls.runtime.bean.ControlBean.ensureControl(Contr
olBean.java:325) 
at controls.SftpBean.sendFile(SftpBean.java:111) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) 
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:585) 
at
com.bea.wli.knex.runtime.jcs.container.JcsProxy.invokeBeehiveControl(Jcs
Proxy.java:666) 
at
com.bea.wli.knex.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:433
) 
at controls.Sftp.sendFile(Unknown Source) 
at processes.UoaSerkoUserExtract.sftpPut1(UoaSerkoUserExtract.jws:122)

 

 

I attempt to call the ServletBeanContext.getServletContext() method from
the onAcquire() lifecycle method of my control.  I also have a
ResourceContext associated with the onAcquire() method via an
@EventHandler annotation. 

 

Any ideas why the ServletBeanContext is not available and what I could
do to ensure it is?

 

Cheers,

Robert

 

Robert Read,

Analyst Programmer,

ITS Group Applications,

The University of Auckland.

 

Ph +64 9 923 2475

Ext 82475

Email r.read@auckland.ac.nz

Web www.auckland.ac.nz



</pre>
</div>
</content>
</entry>
<entry>
<title>FW: Context param question</title>
<author><name>&quot;Robert Read&quot; &lt;r.read@auckland.ac.nz&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200902.mbox/%3cAC3DC202DD1DF2409C475795C7FF9A0D01C06D78@UXCHANGE2.UoA.auckland.ac.nz%3e"/>
<id>urn:uuid:%3cAC3DC202DD1DF2409C475795C7FF9A0D01C06D78@UXCHANGE2-UoA-auckland-ac-nz%3e</id>
<updated>2009-02-11T08:08:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

 

I have written a Custom Beehive Control that wraps the J2SSH Java
library for obtaining an SSH connection and SFTP session with a remote
host for the purpose of transferring a file.  The new control implements
PGP authentication against the remote server using a public/private
key-pair.

 

This works fine between my desktop and an in-house remote host when the
values for the host, port #, user, path to the keyfile, passphrase etc.
are hard-coded.

 

I have parameterised these values so that the control can be configured
externally and I am attempting to use the
http://beehive.apache.org/docs/1.0.1/controls/apidocs/javadoc/org/apache
/beehive/controls/runtime/servlet/ServletBeanContext.html
&lt;http://beehive.apache.org/docs/1.0.1/controls/apidocs/javadoc/org/apach
e/beehive/controls/runtime/servlet/ServletBeanContext.html&gt;  to gain a
reference to the ServletContext and get the values for the parameters
from context-param entries in the web.xml config file by calling
getInitParameter(String name) on the ServletContext.

 

The Beehive documentation states that defining a reference in the
Control implementation class and annotating it @Context will suffice for
its initialisation, but I get the following stack trace:

 

Exception in sendFile
org.apache.beehive.controls.api.ControlException: Control initialization
failure[org.apache.beehive.controls.api.ControlException: Contextual
service org.apache.beehive.controls.runtime.servlet.ServletBeanContext
is not available]
Caused by: org.apache.beehive.controls.api.ControlException: Contextual
service org.apache.beehive.controls.runtime.servlet.ServletBeanContext
is not available
    ... 40 more
at
org.apache.beehive.controls.runtime.bean.ControlBean.ensureControl(Contr
olBean.java:325) 
at controls.SftpBean.sendFile(SftpBean.java:111) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39) 
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:585) 
at
com.bea.wli.knex.runtime.jcs.container.JcsProxy.invokeBeehiveControl(Jcs
Proxy.java:666) 
at
com.bea.wli.knex.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:433
) 
at controls.Sftp.sendFile(Unknown Source) 
at processes.UoaSerkoUserExtract.sftpPut1(UoaSerkoUserExtract.jws:122)

 

 

I attempt to call the ServletBeanContext.getServletContext() method from
the onAcquire() lifecycle method of my control.  I also have a
ResourceContext associated with the onAcquire() method via an
@EventHandler annotation. 

 

Any ideas why the ServletBeanContext is not available and what I could
do to ensure it is?

 

Cheers,

Robert

 

Robert Read,

Analyst Programmer,

ITS Group Applications,

The University of Auckland.

 

Ph +64 9 923 2475

Ext 82475

Email r.read@auckland.ac.nz

Web www.auckland.ac.nz



</pre>
</div>
</content>
</entry>
<entry>
<title>Enum Netui Converter</title>
<author><name>jnt30 &lt;justin.r.nauman+nabble@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200902.mbox/%3c21798448.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c21798448-post@talk-nabble-com%3e</id>
<updated>2009-02-02T21:10:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

The question I have is in regards to type converters and binding enums. 

I have seen other postings about enum conversion and the necessity to create
type converters for String -&gt; enum.  I have been able to successfully
declare a type converter for String -&gt; enum, however I would like to be able
to create a more generic type converter that will convert between a String
to any enum.  Is it possible to declare a type converter for anything other
than the explicit class defined in the beehive-netui-config.xml file?

Thanks in advance, 
Justin
-- 
View this message in context: http://www.nabble.com/Enum-Netui-Converter-tp21798448p21798448.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>Action for file download</title>
<author><name>&quot;Marxer, Attila&quot; &lt;attila.marxer@capgemini.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200901.mbox/%3c197E7403273D1A44854F646856D25FFA03FB4870@CORPMAIL33.corp.capgemini.com%3e"/>
<id>urn:uuid:%3c197E7403273D1A44854F646856D25FFA03FB4870@CORPMAIL33-corp-capgemini-com%3e</id>
<updated>2009-01-26T14:24:24Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi everybody,
 
I've been using Beehive for a couple of months now and I'm very happy
with
it. However, recently I've found myself facing a problem I couldn't get
resolved:
 
Is there a way to write a simple action to handle a file download? I've
tried to write 
a simple action without any forwards that reads a file from disk, writes

its contennt to the HttpServletResponse and then simply returns "null".
However
Beehive displays the file content "inline" in my page. Is there a way to
force
a "Content-Disposition: attachement" on the response?
 
thanks in advance,
Attila


</pre>
</div>
</content>
</entry>
<entry>
<title>Hegde, Ramdas is out of the office.</title>
<author><name>Ramdas.Hegde@seagate.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200901.mbox/%3cOF644A8F7F.44B74757-ON88257538.0065D547-88257538.0065D548@seagate.com%3e"/>
<id>urn:uuid:%3cOF644A8F7F-44B74757-ON88257538-0065D547-88257538-0065D548@seagate-com%3e</id>
<updated>2009-01-08T18:32:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I will be out of the office starting  12/22/2008 and will not return until
01/12/2009.




</pre>
</div>
</content>
</entry>
<entry>
<title>using scriptlets with netui-data:datagrid</title>
<author><name>&quot;Prachi Deo&quot; &lt;pdeo@medsphere.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200901.mbox/%3cWC20090102064106.1000BE@medsphere.net%3e"/>
<id>urn:uuid:%3cWC20090102064106-1000BE@medsphere-net%3e</id>
<updated>2009-01-02T06:41:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

 A very happy new year.

I am recently attempting to move from netui:table to netui-data:datagrid in 
order take advantage of the paging feature with datagrid. However, I see 
that netui-data:datagrid does not allow script. I desperately need java code 
since my columns(headercells) are based on some logic and dynamic. Does 
anybody know a way out - to use scriptlets with datagrids. I would 
appreciate getting some guidance with this.

thanks.


</pre>
</div>
</content>
</entry>
<entry>
<title>RE:HI</title>
<author><name>&quot;Sebastien Layer&quot; &lt;sebastienlayer@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200811.mbox/%3ca78730a20811130627j2ba195b3j4e3be2c0d5043acc@mail.gmail.com%3e"/>
<id>urn:uuid:%3ca78730a20811130627j2ba195b3j4e3be2c0d5043acc@mail-gmail-com%3e</id>
<updated>2008-11-13T14:27:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
-- 
Hey$B!$(B
how are you doing recently?
I would like to introduce you a very good company and its website is
www.worldtradingsky.com . It can offer you all kinds of electronic products
that you may be in need,such as laptops ,gps ,TV
LCD,cell  phones,ps3,MP3/4,motorcycles and etc........
You can take some time to have a check ,there must be something interesting
you 'd like to  purchase .
The contact email: worldtradingsky@188.com.  MSN:
worldtradingsky@hotmail.com
TEL:  0086+137 2263 1839
Hope you can enjoy yourself in shopping from that company !

Regards


</pre>
</div>
</content>
</entry>
<entry>
<title>&lt;netui:formatDate pattern=&quot;MM/dd/yyyy hh:mm a&quot;/&gt; issue</title>
<author><name>doankhoavy &lt;doankhoavy@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200811.mbox/%3c20318484.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c20318484-post@talk-nabble-com%3e</id>
<updated>2008-11-04T09:03:19Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi All,

i'm using beehive framework and have data-grid that use &lt;netui:formatDate
pattern="MM/dd/yyyy hh:mm a"/&gt; tag but it always displays 11/11/2008 12:00
AM in spite of database is not 12:00 AM.

Anyone can help me to resove this issue?

Thanks.
-- 
View this message in context: http://www.nabble.com/%3Cnetui%3AformatDate-pattern%3D%22MM-dd-yyyy-hh%3Amm-a%22-%3E-issue-tp20318484p20318484.html
Sent from the Beehive - User mailing list archive at Nabble.com.



</pre>
</div>
</content>
</entry>
<entry>
<title>is instance variable of page flow controller thread safe?</title>
<author><name>&quot;Tsai, George (EDS)&quot; &lt;George.Tsai@va.gov&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200810.mbox/%3cCCE9D85D9DDA40438132DE0B2B02CB380640CCE7@VHAISHMSGJ2.vha.med.va.gov%3e"/>
<id>urn:uuid:%3cCCE9D85D9DDA40438132DE0B2B02CB380640CCE7@VHAISHMSGJ2-vha-med-va-gov%3e</id>
<updated>2008-10-22T14:06:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have a page flow controller that is a subclass of
org.apache.beehive.netui.pageflow.PageFlowController running weblogic
921. The essence of my question is: is instance variable of page flow
controller thread safe?

Here are the details. In the page flow controller, I have an instance
variable "status" that stores the status of the patient, which is stored
in the request. It sets the status after the patient status is retrieved
from database. The set method is not synchronized. 

This works fine during normal test. But it failed during load test. Does
a page flow controller instance shared among different requests? If so,
how can I store the status for each request? 

Thanks,

G T	




</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Is it possible to use Struts 2 with Beehive NetUI?</title>
<author><name>&quot;Carlin Rogers&quot; &lt;carlin.rogers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200810.mbox/%3cba6911de0810202141n61257320id3d7a7fe21480d9c@mail.gmail.com%3e"/>
<id>urn:uuid:%3cba6911de0810202141n61257320id3d7a7fe21480d9c@mail-gmail-com%3e</id>
<updated>2008-10-21T04:41:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Shylesh,

Unfortunately, no. Beehive NetUI does not support Struts 2. I haven't seen
activity or plans in the Beehive dev community about future work such as
Struts 2 support.

The following email in the Beehive dev alias provides some information about
Beehive activity.

http://mail-archives.apache.org/mod_mbox/beehive-dev/200807.mbox/%3Ce9ac83540807102126x30120403r55bc19caec096a11@mail.gmail.com%3E

Kind regards,
Carlin

On Mon, Oct 20, 2008 at 8:51 PM, Shylesh Gopalakrishnan &lt;
shylesh.g@in.ibm.com&gt; wrote:

&gt; Hi,
&gt;
&gt; Is it possible to use Struts 2 with Beehive NetUI?
&gt; Please let me know the current status and the road map for beehive
&gt; project.
&gt; Is the beehive project not active?
&gt;
&gt;
&gt; Thanks and Regards,
&gt; _________________________________________________________
&gt; Shylesh G
&gt; Staff Application Programmer,
&gt; IBM India Private Limited - Application Innovation Services Global
&gt; Delivery,
&gt; Application Development (Communications)
&gt; MK-2B-384,Manyata Embassy Business Park,
&gt; Outer Ring Road,Nagavara, Bangalore
&gt; Phone +91.80.40257605;  Mobile +91.9008922990
&gt; Internet: shylesh.g@in.ibm.com
&gt;
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Is it possible to use Struts 2 with Beehive NetUI?</title>
<author><name>Shylesh Gopalakrishnan &lt;shylesh.g@in.ibm.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200810.mbox/%3cOFE5276366.4CC27EE3-ON652574E9.000F6D7A-652574E9.000FB749@in.ibm.com%3e"/>
<id>urn:uuid:%3cOFE5276366-4CC27EE3-ON652574E9-000F6D7A-652574E9-000FB749@in-ibm-com%3e</id>
<updated>2008-10-21T02:51:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Is it possible to use Struts 2 with Beehive NetUI?
Please let me know the current status and the road map for beehive 
project.
Is the beehive project not active?


Thanks and Regards,
_________________________________________________________
Shylesh G
Staff Application Programmer,
IBM India Private Limited - Application Innovation Services Global 
Delivery,
Application Development (Communications)
MK-2B-384,Manyata Embassy Business Park, 
Outer Ring Road,Nagavara, Bangalore
Phone +91.80.40257605;  Mobile +91.9008922990
Internet: shylesh.g@in.ibm.com




</pre>
</div>
</content>
</entry>
<entry>
<title>Extensible Custom Control with invoke method: how to get a reference to the extended bean instance?</title>
<author><name>&quot;Eduardo Gouvea&quot; &lt;ecgouvea@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200810.mbox/%3ccec934340810031529k10a2f300oac5fcbcf79142120@mail.gmail.com%3e"/>
<id>urn:uuid:%3ccec934340810031529k10a2f300oac5fcbcf79142120@mail-gmail-com%3e</id>
<updated>2008-10-03T22:29:16Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

I'm try to implement both a Extensible and its extended Custom Control
to log any method invocation issued in a extended custom control instance.

I have 2 interfaces and 2 implementations:

@ControlInterface
... MyCustomControl {
}

@ControlImplementation
... MyCustomControlImpl ... implements Extensible ... {
    public Object invoke(Method m, Object[] args)  ... {
        // How to invoke the method been issued in the extended custom
control instance
        // without losing its state, without instantiate a new bean?
        return ...
    }
}

@ControlExtension
@ControlInterface
... MyExtendedCustomControl ...{
    public void sayHello();
}

@ControlImplementation
... MyExtendedCustomControlImpl ... extends MyCustomControlImpl implements
MyCustomControl ... {
}
    public void sayHello() {
        System.out.println("Hello!");
    }
}

But, given the parameters of the "invoke" method, I'm not able to actually
invoke
the extended custom control method after logging some information about it.

How to get a reference to the extended custom control instance within the
"invoke" method
in order to call the intercepted method in that instance?

Att.
Eduardo Gouvea


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: SharedFlowControllers can't access the session in non-action methods</title>
<author><name>&quot;Adkinson, Sean&quot; &lt;SAdkinson@kcdistancelearning.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200809.mbox/%3c4BC3276ED3887B41B2CBB023C996EF660316D3F7@PDXC6002V.corp.edu-resources.com%3e"/>
<id>urn:uuid:%3c4BC3276ED3887B41B2CBB023C996EF660316D3F7@PDXC6002V-corp-edu-resources-com%3e</id>
<updated>2008-09-30T22:58:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Here is the actual stacktrace I see.  Note that this was hit from the
begin() method instead of the beforeAction() method I used as an example
in the last email.

 

 

 

&lt;Sep 30, 2008 3:00:33 PM PDT&gt; &lt;Notice&gt; &lt;Stdout&gt; &lt;000000&gt; &lt;30 Sep
2008
15:00:33,227 ERROR UtilityController: stacktrace:
java.lang.IllegalStateException: getS

ession was called outside of a valid context.&gt;

&lt;Sep 30, 2008 3:00:33 PM PDT&gt; &lt;Notice&gt; &lt;Stdout&gt; &lt;000000&gt; &lt;30 Sep
2008
15:00:33,227 ERROR UtilityController: message:We're sorry, but an error
has occurred.&gt;

 

        at
org.apache.beehive.netui.pageflow.FlowController.getSession(FlowControll
er.java:1003)

        at
com.kcdistancelearning.pageflow.sharedFlow.utility.UtilityController.get
PortalOrganizationId(UtilityController.java:225)

        at portlets.login.LoginController.begin(LoginController.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:585)

        at
org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(Flow
Controller.java:879)

        at
org.apache.beehive.netui.pageflow.FlowController.getActionMethodForward(
FlowController.java:809)

        at
org.apache.beehive.netui.pageflow.FlowController.internalExecute(FlowCon
troller.java:478)

        at
org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(Pag
eFlowController.java:306)

        at
org.apache.beehive.netui.pageflow.FlowController.execute(FlowController.
java:336)

        at
org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execute(
FlowControllerAction.java:52)

        at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201(Pa
geFlowRequestProcessor.java:97)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunner.
execute(PageFlowRequestProcessor.java:2044)

        at
org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionInte
rceptors.wrapAction(ActionInterceptors.java:91)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processAction
Perform(PageFlowRequestProcessor.java:2116)

        at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processIntern
al(PageFlowRequestProcessor.java:556)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageF
lowRequestProcessor.java:853)

        at
org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(Auto
RegisterActionServlet.java:631)

        at
org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlow
ActionServlet.java:158)

        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

        at
com.kcdistancelearning.servlet.IqOesPageFlowActionServlet.doGet(IqOesPag
eFlowActionServlet.java:38)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St
ubSecurityHelper.java:225)

        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH
elper.java:127)

        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2
83)

        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:1
75)

        at
weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDis
patcherImpl.java:496)

        at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
rImpl.java:245)

        at
org.apache.beehive.netui.pageflow.internal.DefaultForwardRedirectHandler
.forward(DefaultForwardRedirectHandler.java:128)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.doForward(Pag
eFlowRequestProcessor.java:1801)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processPageFl
owRequest(PageFlowRequestProcessor.java:741)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processIntern
al(PageFlowRequestProcessor.java:474)

        at
org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(PageF
lowRequestProcessor.java:853)

        at
org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(Auto
RegisterActionServlet.java:631)

        at
org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageFlow
ActionServlet.java:158)

        at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)

        at
com.kcdistancelearning.servlet.IqOesPageFlowActionServlet.doGet(IqOesPag
eFlowActionServlet.java:38)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

        at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(St
ubSecurityHelper.java:225)

        at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityH
elper.java:127)

        at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:2
83)

        at
weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)

        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
42)

        at
com.kcdistancelearning.servlet.filter.IqOesTransactionFilter.wrapInTrans
action(IqOesTransactionFilter.java:60)

        at
com.kcdistancelearning.servlet.filter.IqOesTransactionFilter.doFilter(Iq
OesTransactionFilter.java:51)

        at
weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:
42)

        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:3212)

        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)

        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)

        at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServ
letContext.java:1983)

        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletCont
ext.java:1890)

        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java
:1344)

        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

 

 

 

Sean Adkinson

________________________________

From: Adkinson, Sean 
Sent: Tuesday, September 30, 2008 3:42 PM
To: 'user@beehive.apache.org'
Subject: SharedFlowControllers can't access the session in non-action
methods

 

Hey there,

 

We have recently started utilizing shared flow controllers for session
getters that used to be in inherited controllers.  The reason for this
was to abstract out our inherited controllers in order to be used across
multiple applications in a common code sort of way, but still have a
central location for accessing certain session values.

 

However, it doesn't appear as if you can access the session in a
SharedFlowController when you haven't come in through an action, since
setPerRequestState is never called in FlowController in this case.
Would it be appropriate to call setPerRequestState for each
SharedFlowController whenever setPerRequestState is called?

 

Here are snippets of what I am doing:

 

 

@Jpf.Controller(...)

public class UtilityController extends SharedFlowController

{

 

public Integer getOrganizationId()

{

return
(Integer)getSession().getAttribute(SessionConstants.ORGANIZATION_ID);

}

 

}

 

 

@Jpf.Controller(

      ...

sharedFlowRefs = { @Jpf.SharedFlowRef(name = "utilityController", type =
UtilityController.class) }

)

public class LoginController extends PageFlowController

{

 

@Jpf.SharedFlowField(name = "utilityController")

private UtilityController utilityController;

 

 

protected final synchronized void beforeAction() throws Exception

{

      //fail here

      System.out.println("Organization ID: " +
utilityController.getOrganizationId());

}

}

 

 

When getOrganizationId() lived in an inherited controller, the method
worked fine, since setPerRequestState() had been called for this
controller.  If the code were changed to call setPerRequestState() for
each of the shared controllers when it called was called for the current
controller, this looks like it would work just fine.

 

Any thoughts or suggestions?  Thanks for you help!  

 

 

Sean Adkinson  |  Web Developer/Programmer  |  KCDL  |
sadkinson@klcorp.com  |  (503) 731-5488  |  (503) 866-0852 cell

 



</pre>
</div>
</content>
</entry>
<entry>
<title>SharedFlowControllers can't access the session in non-action methods</title>
<author><name>&quot;Adkinson, Sean&quot; &lt;SAdkinson@kcdistancelearning.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200809.mbox/%3c4BC3276ED3887B41B2CBB023C996EF660316D3D4@PDXC6002V.corp.edu-resources.com%3e"/>
<id>urn:uuid:%3c4BC3276ED3887B41B2CBB023C996EF660316D3D4@PDXC6002V-corp-edu-resources-com%3e</id>
<updated>2008-09-30T22:41:36Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hey there,

 

We have recently started utilizing shared flow controllers for session
getters that used to be in inherited controllers.  The reason for this
was to abstract out our inherited controllers in order to be used across
multiple applications in a common code sort of way, but still have a
central location for accessing certain session values.

 

However, it doesn't appear as if you can access the session in a
SharedFlowController when you haven't come in through an action, since
setPerRequestState is never called in FlowController in this case.
Would it be appropriate to call setPerRequestState for each
SharedFlowController whenever setPerRequestState is called?

 

Here are snippets of what I am doing:

 

 

@Jpf.Controller(...)

public class UtilityController extends SharedFlowController

{

 

public Integer getOrganizationId()

{

return
(Integer)getSession().getAttribute(SessionConstants.ORGANIZATION_ID);

}

 

}

 

 

@Jpf.Controller(

      ...

sharedFlowRefs = { @Jpf.SharedFlowRef(name = "utilityController", type =
UtilityController.class) }

)

public class LoginController extends PageFlowController

{

 

@Jpf.SharedFlowField(name = "utilityController")

private UtilityController utilityController;

 

 

protected final synchronized void beforeAction() throws Exception

{

      //fail here

      System.out.println("Organization ID: " +
utilityController.getOrganizationId());

}

}

 

 

When getOrganizationId() lived in an inherited controller, the method
worked fine, since setPerRequestState() had been called for this
controller.  If the code were changed to call setPerRequestState() for
each of the shared controllers when it called was called for the current
controller, this looks like it would work just fine.

 

Any thoughts or suggestions?  Thanks for you help!  

 

 

Sean Adkinson  |  Web Developer/Programmer  |  KCDL  |
sadkinson@klcorp.com  |  (503) 731-5488  |  (503) 866-0852 cell

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Jira Iissue 1193</title>
<author><name>&quot;Carlin Rogers&quot; &lt;carlin.rogers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200809.mbox/%3cba6911de0809162017i106f5796qd46a50153bc28591@mail.gmail.com%3e"/>
<id>urn:uuid:%3cba6911de0809162017i106f5796qd46a50153bc28591@mail-gmail-com%3e</id>
<updated>2008-09-17T03:17:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Srinivas,

Looks like the bug lists the fix as SVN revision 538018. I did a quick
google search and found the description of the change in the archived SVN
notification. See...

http://mail-archives.apache.org/mod_mbox/beehive-commits/200705.mbox/%3C20070514233636.3A0C91A9838@eris.apache.org%3E

Hope that helps. Kind regards,
Carlin

On Tue, Sep 16, 2008 at 12:26 PM, Srinivas Surapaneni &lt;
srinivas.surapaneni@gmail.com&gt; wrote:

&gt; There is a fix for JIRA issue 1193 in Beehive
&gt;
&gt; https://issues.apache.org/jira/browse/BEEHIVE-1193
&gt;
&gt; It is fixed, but there are no case notes what files were changed.
&gt;
&gt; I am trying to apply the patch to the beehive version that came part of
&gt; Weblogic 9.2 MP3
&gt;
&gt; Can you provide more details what files we need to get to apply the patch?
&gt;
&gt; Thank You
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Jira Iissue 1193</title>
<author><name>&quot;Srinivas Surapaneni&quot; &lt;srinivas.surapaneni@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200809.mbox/%3c6aad58900809161126u1b9df5fdv764fcc0fffd4573e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6aad58900809161126u1b9df5fdv764fcc0fffd4573e@mail-gmail-com%3e</id>
<updated>2008-09-16T18:26:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
There is a fix for JIRA issue 1193 in Beehive

https://issues.apache.org/jira/browse/BEEHIVE-1193

It is fixed, but there are no case notes what files were changed.

I am trying to apply the patch to the beehive version that came part of
Weblogic 9.2 MP3

Can you provide more details what files we need to get to apply the patch?

Thank You


</pre>
</div>
</content>
</entry>
<entry>
<title>NavigateTo.currentPage in inherited page flows throw NoPreviousPageException</title>
<author><name>&quot;Philipp Jardas&quot; &lt;philipp@jardas.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200809.mbox/%3c7d9335c40809020322k385398b1k49883e03b065b51c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c7d9335c40809020322k385398b1k49883e03b065b51c@mail-gmail-com%3e</id>
<updated>2008-09-02T10:22:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi everyone,

I use an abstract page flow which is inherited by several concrete
page flows as follows:

package foo.bar;

@Jpf.Controller(...)
public abstract class ParentController extends ... {
  @Jpf.Action(
    forwards = { ... },
    validationErrorForward = @Jpf.Forward(name = "validation",
navigateTo = Jpf.NavigateTo.currentPage)
  )
  public Forward submitPersonalData(PersonalDataForm form) {
    ...
  }
}


package foo.bar.concrete;

@Jpf.Controller(inheritLocalPaths = true)
public class ConcreteController extends ParentController {
  ...
}


The two controllers reside in separate packages, of course, so I have
to use "inheritLocalPaths = true" to use JSP in the parent package.
The page flow works flawlessly as long as the user enters valid data.
If the form bean validation fails, I would expect the user to be
forwarded back to the input page. However, this results in an
exception as below:

org.apache.beehive.netui.pageflow.NoPreviousPageException: No relevant
page for return-to="currentPage" on action submitPersonalData in page
flow /.../.../ConcreteController.jpf.

I've tried implementing alwaysTrackPreviousPage() returning true to no avail.

Does anyone have an idea about this?

Thanks a lot in advance,
&lt;P&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URL template config</title>
<author><name>&quot;Carlin Rogers&quot; &lt;carlin.rogers@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3cba6911de0808181052w3038e3cbu4cbfe1eb4aff8b05@mail.gmail.com%3e"/>
<id>urn:uuid:%3cba6911de0808181052w3038e3cbu4cbfe1eb4aff8b05@mail-gmail-com%3e</id>
<updated>2008-08-18T17:52:51Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Srinivas,

The use of the templates is managed with the URLRewriterService that
is part of the NetUI framework. In general it is used by the NetUI tag
classes to render a URL on a page. The framework calls takes a
rewritten URL and then uses a template to format a URL object to a
string to be rendered in a page. Using a template is not requred. If
you do, the url:queryString is used when there are query paramters for
the URL object.

They could be set by using the &lt;netui:parameter&gt; tag as a sub element
to a &lt;netui:anchor&gt; tag.

Kind regards,
Carlin

On Tue, Aug 12, 2008 at 2:20 PM, Srinivas Surapaneni
&lt;srinivas.surapaneni@gmail.com&gt; wrote:
&gt; In my beehive-url-template-config.xml, i had the following template
&gt;
&gt;
&gt; &lt;url-template&gt;
&gt;
&gt; &lt;name&gt;jpf-action&lt;/name&gt;
&gt;
&gt; &lt;value&gt;
&gt;
&gt; http://{url:domain}:{url:port}/{url:path}?URLTEMPLATE=action&amp;amp;
&gt; {url:queryString}
&gt;
&gt; &lt;/value&gt;
&gt;
&gt; &lt;/url-template&gt;
&gt;
&gt;
&gt;
&gt; When is the url:queryString &lt;queryString&gt; used?
&gt;
&gt; Is it possible to add run time paramers from request/session to this
&gt; template?
&gt;
&gt;
&gt;
&gt; Thanks
&gt;
&gt; Srinivas
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>url template config</title>
<author><name>&quot;Srinivas Surapaneni&quot; &lt;srinivas.surapaneni@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3c6aad58900808121839v6c5798eei4f8e4f865bd78fbf@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6aad58900808121839v6c5798eei4f8e4f865bd78fbf@mail-gmail-com%3e</id>
<updated>2008-08-13T01:39:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In my beehive-url-template-config.xml, i had the following template

&lt;url-template&gt;
&lt;name&gt;jpf-action&lt;/name&gt;
&lt;value&gt;
http://{url:domain}:{url:port}/{url:path}?URLTEMPLATE=action
&amp;amp;{url:queryString}
&lt;/value&gt;
&lt;/url-template&gt;

When is the url:queryString&lt;https://mail.google.com/mail/html/compose/static_files/queryString&gt;used?
Is it possible to add run time paramers from request/session to this
template without extending url rewriter?

Thanks
Srinivas


</pre>
</div>
</content>
</entry>
<entry>
<title>URL template config</title>
<author><name>&quot;Srinivas Surapaneni&quot; &lt;srinivas.surapaneni@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3c6aad58900808121320l48aa635fpaf10b08ad3d579ac@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6aad58900808121320l48aa635fpaf10b08ad3d579ac@mail-gmail-com%3e</id>
<updated>2008-08-12T20:20:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
In my beehive-url-template-config.xml, i had the following template


&lt;url-template&gt;

&lt;name&gt;jpf-action&lt;/name&gt;

&lt;value&gt;

http://{url:domain}:{url:port}/{url:path}?URLTEMPLATE=action&amp;amp;
{url:queryString}

&lt;/value&gt;

&lt;/url-template&gt;



When is the url:queryString &lt;queryString&gt; used?

Is it possible to add run time paramers from request/session to this
template?



Thanks

Srinivas


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URL Template Issues</title>
<author><name>&quot;Dan Turkenkopf&quot; &lt;dturkenk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3c35dbee350808060512kcac5b70n17b0cb78ff624226@mail.gmail.com%3e"/>
<id>urn:uuid:%3c35dbee350808060512kcac5b70n17b0cb78ff624226@mail-gmail-com%3e</id>
<updated>2008-08-06T12:12:22Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks Chris,

That worked perfectly.

-- Dan

Chris Jolley wrote:
&gt; This feature is a Desktop property called "scrollToWindow" you can
&gt; disable it in the admin tools for that desktop

Dan Turkenkopf wrote:
&gt; I'm using Beehive as the basis for a set of portlets running on
&gt; WebLogic Portal Server 10.2.
&gt;
&gt; When I click on any action link, an anchor representing that page link
&gt; is being automatically created and embedded on the end of the URL [1],
&gt; which causes the page to jump to that location.  My usability team
&gt; would prefer that the browser stays at the top of the page so that the
&gt; navigation elements are always available.
&gt;
&gt; Walking through the debugger, it appears that the anchor reference is
&gt; being stored as a URL fragment element, which I thought would be
&gt; written to the {url:fragment} token in the URL templates.  However,
&gt; the URLs defined in the beehive-url-template-config.xml [2] don't
&gt; include that token - so I'm not sure why the fragment is being
&gt; appended to the URL.
&gt;
&gt; I've confirmed that the patterns defined in the file are being used,
&gt; so it's not that the file is ignored.
&gt;
&gt; I can't seem to figure out where the fragment is coming from or how to
&gt; stop it from rendering.
&gt;
&gt; Thanks for any help,
&gt;
&gt; Dan Turkenkopf
&gt;
&gt; [1] Example URL:
&gt; https://www.mysite.com/context/myportal.portal?page=my_portal_page#myactionlink
&gt;
&gt; [2] See attached file
&gt;
&gt; Notice: This email message, together with any attachments, may contain
&gt; information of BEA Systems, Inc., its subsidiaries and affiliated
&gt; entities, that may be confidential, proprietary, copyrighted and/or
&gt; legally privileged, and is intended solely for the use of the
&gt; individual or entity named in this message. If you are not the
&gt; intended recipient, and have received this message in error, please
&gt; immediately return this by email and then delete it.


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: URL Template Issues</title>
<author><name>Chris Jolley &lt;chris.jolley@oracle.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3c489874DF.2030107@oracle.com%3e"/>
<id>urn:uuid:%3c489874DF-2030107@oracle-com%3e</id>
<updated>2008-08-05T15:42:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
This feature is a Desktop property called "scrollToWindow" you can 
disable it in the admin tools for that desktop

Dan Turkenkopf wrote:
&gt; I'm using Beehive as the basis for a set of portlets running on 
&gt; WebLogic Portal Server 10.2.
&gt;
&gt; When I click on any action link, an anchor representing that page link 
&gt; is being automatically created and embedded on the end of the URL [1], 
&gt; which causes the page to jump to that location.  My usability team 
&gt; would prefer that the browser stays at the top of the page so that the 
&gt; navigation elements are always available.
&gt;
&gt; Walking through the debugger, it appears that the anchor reference is 
&gt; being stored as a URL fragment element, which I thought would be 
&gt; written to the {url:fragment} token in the URL templates.  However, 
&gt; the URLs defined in the beehive-url-template-config.xml [2] don't 
&gt; include that token - so I'm not sure why the fragment is being 
&gt; appended to the URL.
&gt;
&gt; I've confirmed that the patterns defined in the file are being used, 
&gt; so it's not that the file is ignored.
&gt;
&gt; I can't seem to figure out where the fragment is coming from or how to 
&gt; stop it from rendering.
&gt;
&gt; Thanks for any help,
&gt;
&gt; Dan Turkenkopf
&gt;
&gt; [1] Example URL: 
&gt; https://www.mysite.com/context/myportal.portal?page=my_portal_page#myactionlink
&gt;
&gt; [2] See attached file
&gt;
&gt; Notice: This email message, together with any attachments, may contain 
&gt; information of BEA Systems, Inc., its subsidiaries and affiliated 
&gt; entities, that may be confidential, proprietary, copyrighted and/or 
&gt; legally privileged, and is intended solely for the use of the 
&gt; individual or entity named in this message. If you are not the 
&gt; intended recipient, and have received this message in error, please 
&gt; immediately return this by email and then delete it. 


</pre>
</div>
</content>
</entry>
<entry>
<title>Fabrice Robbe est absent(e).</title>
<author><name>Fabrice.Robbe@devoteam.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3cOFBB36CF03.9E87601D-ONC125749C.002BFF45-C125749C.002BFF45@devoteam.com%3e"/>
<id>urn:uuid:%3cOFBB36CF03-9E87601D-ONC125749C-002BFF45-C125749C-002BFF45@devoteam-com%3e</id>
<updated>2008-08-05T08:00:33Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Je serai absent(e) du  04/08/2008 au 19/08/2008.

Bonjour,
Je serai absent du lundi 4 aout au mardi 20 aout inclus.
Je répondrai à votre message dès mon retour.



</pre>
</div>
</content>
</entry>
<entry>
<title>URL Template Issues</title>
<author><name>&quot;Dan Turkenkopf&quot; &lt;dturkenk@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200808.mbox/%3c35dbee350808041731ve9147fcn60b190c06c3e38d2@mail.gmail.com%3e"/>
<id>urn:uuid:%3c35dbee350808041731ve9147fcn60b190c06c3e38d2@mail-gmail-com%3e</id>
<updated>2008-08-05T00:31:48Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm using Beehive as the basis for a set of portlets running on WebLogic
Portal Server 10.2.

When I click on any action link, an anchor representing that page link is
being automatically created and embedded on the end of the URL [1], which
causes the page to jump to that location.  My usability team would prefer
that the browser stays at the top of the page so that the navigation
elements are always available.

Walking through the debugger, it appears that the anchor reference is being
stored as a URL fragment element, which I thought would be written to the
{url:fragment} token in the URL templates.  However, the URLs defined in the
beehive-url-template-config.xml [2] don't include that token - so I'm not
sure why the fragment is being appended to the URL.

I've confirmed that the patterns defined in the file are being used, so it's
not that the file is ignored.

I can't seem to figure out where the fragment is coming from or how to stop
it from rendering.

Thanks for any help,

Dan Turkenkopf

[1] Example URL:
https://www.mysite.com/context/myportal.portal?page=my_portal_page#myactionlink

[2] See attached file


</pre>
</div>
</content>
</entry>
<entry>
<title>JDBC Control</title>
<author><name>Emmanuel Collin &lt;ecollin@awat.fr&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200807.mbox/%3c487DFE64.1010500@awat.fr%3e"/>
<id>urn:uuid:%3c487DFE64-1010500@awat-fr%3e</id>
<updated>2008-07-16T13:57:56Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

i'm trying to use an alias into a select query (select LASTNAME as 
lname...) on a MYSQL database without any succes. The same query works 
fine on an Oracle database.
Do i need to write a custom resultset mapper for this specific issue ?

Thx a lot
Emmanuel


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Releasing JDBCControl connections early</title>
<author><name>Dan Anderson &lt;danderson@intertech.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/beehive-user/200806.mbox/%3c18162210.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c18162210-post@talk-nabble-com%3e</id>
<updated>2008-06-27T19:25:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

That options could work and I thank you for the positive feedback.
What I have done is created a wrapper around my JdbcControls that de-couples
it from the custom control that consumes it's services. That way, I can
create the JdbcControl whenever I want and destroy when I am finished with
it.



Chad Schoettger-2 wrote:
&gt; 
&gt; Depending on the specifics of you implementation, you may be able to
&gt; use the @ConnectionOptions.useExternalConnection annotation (defined
&gt; in the JdbcControl interface) to reduce the number of JDBCConnections
&gt; used.
&gt; 
&gt; If the useExternalConnection annotation has a value of true, the JDBC
&gt; control will not acquire its own connection, instead it will use the
&gt; Connection supplied by the JdbcControl.setConnection() API.
&gt; 
&gt;   - Hope this helps,
&gt;       Chad
&gt; 
&gt; 
&gt; 
&gt; On Mon, Jun 23, 2008 at 3:17 PM, Dan Anderson &lt;danderson@intertech.com&gt;
&gt; wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; I have thus far built 20+ controls that extend JDBCControl, These
&gt;&gt; JDBCContorls are used by dao objects. These dao objects are in turn
&gt;&gt; custom
&gt;&gt; beehive controls. The problem that I am running into is that the
&gt;&gt; JDBCControls are not being cleaned up until the parent custom control is
&gt;&gt; destroyed. I have gone so far as to null the control instance to force
&gt;&gt; the
&gt;&gt; onRelease() method to be fired.
&gt;&gt;
&gt;&gt; I need a way to force the connection to be released on demand. One of my
&gt;&gt; more advanced JUnit tests is exhausting the connection pool and is
&gt;&gt; failing.
&gt;&gt;
&gt;&gt; Any help would be greatly appreciated.
&gt;&gt; --
&gt;&gt; View this message in context:
&gt;&gt; http://www.nabble.com/Releasing-JDBCControl-connections-early-tp18078694p18078694.html
&gt;&gt; Sent from the Beehive - User mailing list archive at Nabble.com.
&gt;&gt;
&gt;&gt;
&gt; 
&gt; 

-- 
View this message in context: http://www.nabble.com/Releasing-JDBCControl-connections-early-tp18078694p18162210.html
Sent from the Beehive - User mailing list archive at Nabble.com.



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