<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Extending BEA netui tags</title>
	<atom:link href="http://www.blog.dannynet.net/archives/2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blog.dannynet.net/archives/2</link>
	<description>Pondering Programming and Poetry</description>
	<pubDate>Sat, 04 Feb 2012 22:06:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Ben</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-244252</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 20 Oct 2010 06:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-244252</guid>
		<description>Hi Danny
Your blog is truly good and useful.
I have a requirement wherein a netui button must be disabled after the first click ,disablesecondclick isnt working with this-says its not recognized.
Tried using script but disable option  alone isnt working however alert messages are displayed
Thanks</description>
		<content:encoded><![CDATA[<p>Hi Danny<br />
Your blog is truly good and useful.<br />
I have a requirement wherein a netui button must be disabled after the first click ,disablesecondclick isnt working with this-says its not recognized.<br />
Tried using script but disable option  alone isnt working however alert messages are displayed<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hemang</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-134784</link>
		<dc:creator>Hemang</dc:creator>
		<pubDate>Thu, 08 May 2008 14:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-134784</guid>
		<description>Hi Guys,

I want a netui:anchor tag to get selected, by default, when someone runs the portal for the first time.....?
How to do this ?</description>
		<content:encoded><![CDATA[<p>Hi Guys,</p>
<p>I want a netui:anchor tag to get selected, by default, when someone runs the portal for the first time&#8230;..?<br />
How to do this ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoang</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-6968</link>
		<dc:creator>Hoang</dc:creator>
		<pubDate>Tue, 14 Nov 2006 04:23:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-6968</guid>
		<description>Hi guys!

I have a technical question wanna ask you guys:
- I have a datagrid with paging inside it. Firstly, I move to page 2 and edit 1 record in page 2 but when I click Save to come back to datagrid, the screen will be back to page 1, is anyone faced with this problem? please help, thanks

Hoang</description>
		<content:encoded><![CDATA[<p>Hi guys!</p>
<p>I have a technical question wanna ask you guys:<br />
- I have a datagrid with paging inside it. Firstly, I move to page 2 and edit 1 record in page 2 but when I click Save to come back to datagrid, the screen will be back to page 1, is anyone faced with this problem? please help, thanks</p>
<p>Hoang</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-4184</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Fri, 29 Sep 2006 12:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-4184</guid>
		<description>@Michael: Maybe you could do this somewhere in the Portal JSP-templates?

@Amit: I'm not sure about any legal issues; you're not actually using any decompiled code, just extending it. Then again, the decompiling itself may be enough to put you behind bars. The solution might be to use &lt;a href="http://beehive.apache.org/" rel="nofollow"&gt;Beehive&lt;/a&gt;, which is BEA's netui framework turned open source.</description>
		<content:encoded><![CDATA[<p>@Michael: Maybe you could do this somewhere in the Portal JSP-templates?</p>
<p>@Amit: I&#8217;m not sure about any legal issues; you&#8217;re not actually using any decompiled code, just extending it. Then again, the decompiling itself may be enough to put you behind bars. The solution might be to use <a href="http://beehive.apache.org/" rel="nofollow">Beehive</a>, which is BEA&#8217;s netui framework turned open source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2935</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Fri, 01 Sep 2006 16:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2935</guid>
		<description>Hi Danny,
   Nice article. But I'm wondering if there is any legal issue with this as we'll be decompiling BEA APIs and using BEA's not-public claases. Plus, this also has an issue from BEA's one version to another.

Any comments?
Amit
Technical Architect</description>
		<content:encoded><![CDATA[<p>Hi Danny,<br />
   Nice article. But I&#8217;m wondering if there is any legal issue with this as we&#8217;ll be decompiling BEA APIs and using BEA&#8217;s not-public claases. Plus, this also has an issue from BEA&#8217;s one version to another.</p>
<p>Any comments?<br />
Amit<br />
Technical Architect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2723</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Fri, 18 Aug 2006 11:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2723</guid>
		<description>Hi

Thank you for a good article. I'm new til WLP use to work on IBM WPS. Anyway what I am trying to get my head around is to add extra parameters to the outerscope request for all URLS. The portlet developers should not need to do anything, it should somehow be done automatically. I have been looking at the URLRewriterService and the templates but cannot find any good documentation or examples on how to use these.

Anyone got any sugestions?

regards
Michael</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Thank you for a good article. I&#8217;m new til WLP use to work on IBM WPS. Anyway what I am trying to get my head around is to add extra parameters to the outerscope request for all URLS. The portlet developers should not need to do anything, it should somehow be done automatically. I have been looking at the URLRewriterService and the templates but cannot find any good documentation or examples on how to use these.</p>
<p>Anyone got any sugestions?</p>
<p>regards<br />
Michael</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dom</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2708</link>
		<dc:creator>dom</dc:creator>
		<pubDate>Thu, 17 Aug 2006 15:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2708</guid>
		<description>I'm wondering if you can customize your netui tags similar to user controls of microsoft.  For example you can call multiple optionbuttons with just a single tag.</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if you can customize your netui tags similar to user controls of microsoft.  For example you can call multiple optionbuttons with just a single tag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2638</link>
		<dc:creator>Danny</dc:creator>
		<pubDate>Tue, 15 Aug 2006 10:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2638</guid>
		<description>@Ijon: sorry, the formatType property was our the format property that we added ourselves (like in example 1). You can safely leave it out.</description>
		<content:encoded><![CDATA[<p>@Ijon: sorry, the formatType property was our the format property that we added ourselves (like in example 1). You can safely leave it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ijon Tichy</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2488</link>
		<dc:creator>Ijon Tichy</dc:creator>
		<pubDate>Wed, 09 Aug 2006 14:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2488</guid>
		<description>apparently, in SP5 there is not a format type property.

labelTag.setFormatType(this.getFormatType());

in which SP did you test the tag ?

Greetings and great article, you should submit it to dev2dev.</description>
		<content:encoded><![CDATA[<p>apparently, in SP5 there is not a format type property.</p>
<p>labelTag.setFormatType(this.getFormatType());</p>
<p>in which SP did you test the tag ?</p>
<p>Greetings and great article, you should submit it to dev2dev.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kane Li</title>
		<link>http://www.blog.dannynet.net/archives/2#comment-2169</link>
		<dc:creator>Kane Li</dc:creator>
		<pubDate>Wed, 26 Jul 2006 05:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.blog.dannynet.net/?p=2#comment-2169</guid>
		<description>package au.sa.gov.welfare.web.tags;

import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

/**
 * AnchorWithDisable tag
 * 
 * extends from Weblogic 8.1 SP5 NetUI Anchor class
 * 
 * add this ability to disable an anchor and set anchor parameters
 * 
 * requires
 * 
 * - welfare-tags-html.tld
 * - welfare-tags-html.tldx
 * - netui-tags-html.jar
 * 
 * Created by Kane Li 21/07/2006
 */
public class AnchorWithDisable extends com.bea.wlw.netui.tags.html.Anchor {
    protected boolean disabled = false;
    protected String paramName;
    protected String paramValue;
    /**
     * disable the anchor
     */
    public void setDisabled(String value) {
        
        // check if expression
        if (isExpression(value)) {
            Object o = super.evaluateExpression(value, "disabled");
            if (o instanceof Boolean)
                disabled = ((Boolean) o).booleanValue();
        }
        // check string value
        else {
            if (value.equalsIgnoreCase("true"))
                disabled = true;
            else
                disabled = false;
        }    
    }
    /**
     * set the param name
     */
    public void setParamName(String name) {
        if (isExpression(name)) {
          Object o = super.evaluateExpression(name, "paramName");
            if (o instanceof String)
                paramName = (String) o; 
        }
        else
            this.paramName = name;
    }
    /**
     * set the param value
     */
    public void setParamValue(String value) {
        if (isExpression(value)) {
          Object o = super.evaluateExpression(value, "paramValue");
            if (o instanceof String)
                paramValue = (String) o; 
        }
        else
            this.paramValue = value;
    }
    /**
     * do the start tag
     */
	public int doStartTag() throws JspException {
        if (disabled)
            return EVAL_BODY_INCLUDE;
        else {
            if (paramName != null &#38;&#38; paramValue != null)
                addParameter(paramName, paramValue);
            return super.doStartTag();
        }
	}
    /**
     * do the end tag
     */
	public int doEndTag() throws JspException {	
        if (disabled) 
            return EVAL_PAGE;        
        return super.doEndTag();
	}
}</description>
		<content:encoded><![CDATA[<p>package au.sa.gov.welfare.web.tags;</p>
<p>import javax.servlet.jsp.*;<br />
import javax.servlet.jsp.tagext.*;</p>
<p>/**<br />
 * AnchorWithDisable tag<br />
 *<br />
 * extends from Weblogic 8.1 SP5 NetUI Anchor class<br />
 *<br />
 * add this ability to disable an anchor and set anchor parameters<br />
 *<br />
 * requires<br />
 *<br />
 * - welfare-tags-html.tld<br />
 * - welfare-tags-html.tldx<br />
 * - netui-tags-html.jar<br />
 *<br />
 * Created by Kane Li 21/07/2006<br />
 */<br />
public class AnchorWithDisable extends com.bea.wlw.netui.tags.html.Anchor {<br />
    protected boolean disabled = false;<br />
    protected String paramName;<br />
    protected String paramValue;<br />
    /**<br />
     * disable the anchor<br />
     */<br />
    public void setDisabled(String value) {</p>
<p>        // check if expression<br />
        if (isExpression(value)) {<br />
            Object o = super.evaluateExpression(value, &#8220;disabled&#8221;);<br />
            if (o instanceof Boolean)<br />
                disabled = ((Boolean) o).booleanValue();<br />
        }<br />
        // check string value<br />
        else {<br />
            if (value.equalsIgnoreCase(&#8221;true&#8221;))<br />
                disabled = true;<br />
            else<br />
                disabled = false;<br />
        }<br />
    }<br />
    /**<br />
     * set the param name<br />
     */<br />
    public void setParamName(String name) {<br />
        if (isExpression(name)) {<br />
          Object o = super.evaluateExpression(name, &#8220;paramName&#8221;);<br />
            if (o instanceof String)<br />
                paramName = (String) o;<br />
        }<br />
        else<br />
            this.paramName = name;<br />
    }<br />
    /**<br />
     * set the param value<br />
     */<br />
    public void setParamValue(String value) {<br />
        if (isExpression(value)) {<br />
          Object o = super.evaluateExpression(value, &#8220;paramValue&#8221;);<br />
            if (o instanceof String)<br />
                paramValue = (String) o;<br />
        }<br />
        else<br />
            this.paramValue = value;<br />
    }<br />
    /**<br />
     * do the start tag<br />
     */<br />
	public int doStartTag() throws JspException {<br />
        if (disabled)<br />
            return EVAL_BODY_INCLUDE;<br />
        else {<br />
            if (paramName != null &amp;&amp; paramValue != null)<br />
                addParameter(paramName, paramValue);<br />
            return super.doStartTag();<br />
        }<br />
	}<br />
    /**<br />
     * do the end tag<br />
     */<br />
	public int doEndTag() throws JspException {<br />
        if (disabled)<br />
            return EVAL_PAGE;<br />
        return super.doEndTag();<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

