Author: nbelaevski
Date: 2011-01-20 11:17:43 -0500 (Thu, 20 Jan 2011)
New Revision: 21125
Added:
trunk/ui/core/ui/src/main/resources/META-INF/cdk/attributes/commandLink-target-prop.xml
Modified:
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandLink.java
trunk/ui/core/ui/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml
Log:
https://issues.jboss.org/browse/RF-10222
Modified: trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandLink.java
===================================================================
---
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandLink.java 2011-01-20
16:14:42 UTC (rev 21124)
+++
trunk/ui/core/ui/src/main/java/org/richfaces/component/AbstractCommandLink.java 2011-01-20
16:17:43 UTC (rev 21125)
@@ -39,7 +39,7 @@
@JsfComponent (
renderer = @JsfRenderer(type = "org.richfaces.CommandLinkRenderer"),
tag = @Tag(type = TagType.Facelets),
- attributes = { "ajax-props.xml", "link-props.xml",
"core-props.xml" }
+ attributes = {"commandLink-target-prop.xml", "ajax-props.xml",
"link-props.xml", "core-props.xml"}
)
public abstract class AbstractCommandLink extends AbstractActionComponent implements
MetaComponentResolver {
Added:
trunk/ui/core/ui/src/main/resources/META-INF/cdk/attributes/commandLink-target-prop.xml
===================================================================
---
trunk/ui/core/ui/src/main/resources/META-INF/cdk/attributes/commandLink-target-prop.xml
(rev 0)
+++
trunk/ui/core/ui/src/main/resources/META-INF/cdk/attributes/commandLink-target-prop.xml 2011-01-20
16:17:43 UTC (rev 21125)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright ${year}, Red Hat,
+ Inc. and individual contributors by the @authors tag. See the copyright.txt
+ in the distribution for a full listing of individual contributors. This is
+ free software; you can redistribute it and/or modify it under the terms of
+ the GNU Lesser General Public License as published by the Free Software Foundation;
+ either version 2.1 of the License, or (at your option) any later version.
+ This software is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ details. You should have received a copy of the GNU Lesser General Public
+ License along with this software; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the
+ FSF site:
http://www.fsf.org. -->
+<cdk:properties
xmlns:xi="http://www.w3.org/2001/XInclude"
+
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/extensions"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee">
+
+ <property>
+ <property-name>target</property-name>
+ <property-class>java.lang.String</property-class>
+ <property-extension>
+ <cdk:hidden>true</cdk:hidden>
+ </property-extension>
+ </property>
+
+</cdk:properties>
Modified:
trunk/ui/core/ui/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml
===================================================================
---
trunk/ui/core/ui/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml 2011-01-20
16:14:42 UTC (rev 21124)
+++
trunk/ui/core/ui/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml 2011-01-20
16:17:43 UTC (rev 21125)
@@ -16,7 +16,7 @@
<c:choose>
<c:when test="#{not component.attributes['disabled']}">
<a id="#{clientId}" name="#{clientId}"
- cdk:passThroughWithExclusions="value"
onclick="#{this.getOnClick(facesContext, component)}"
+ cdk:passThroughWithExclusions="value target"
onclick="#{this.getOnClick(facesContext, component)}"
href="#">
#{component.attributes['value']}
<cdk:call expression="renderChildren(facesContext, component)" />