Skip to content

Commit

Permalink
resolveValue moved from ao-taglib to ao-servlet-util
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Oct 2, 2023
1 parent 3dab33d commit c98369a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 18 deletions.
8 changes: 4 additions & 4 deletions book/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>

<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib-book</artifactId><version>1.15.2-POST-SNAPSHOT</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib-book</artifactId><version>1.16.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down Expand Up @@ -145,7 +145,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<configuration>
<artifactItems>
<artifactItem>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.15.2${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.16.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
<type>jar</type>
<includes>META-INF/semanticcms-core.tld</includes>
</artifactItem>
Expand All @@ -155,7 +155,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
</executions>
<dependencies>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.15.2${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.16.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
<type>jar</type>
<exclusions><exclusion><groupId>*</groupId><artifactId>*</artifactId></exclusion></exclusions>
</dependency>
Expand Down Expand Up @@ -239,7 +239,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-changelog-taglib</artifactId><version>1.7.1${POST-SNAPSHOT}</version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.15.2${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.16.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-section-taglib</artifactId><version>1.9.1${POST-SNAPSHOT}</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
shortTitle="Changelog"
tocLevels="1"
datePublished="2016-10-30T20:28:28-05:00"
dateModified="2022-02-15T21:37:30-06:00"
dateModified="2023-10-02T12:28:06Z"
>
<c:set var="latestRelease" value="1.15.2" />
<c:if test="${
Expand All @@ -52,7 +52,14 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
artifactId="@{documented.artifactId}"
repository="@{nexusUrl}content/repositories/snapshots/"
scmUrl="@{project.scm.url}"
/>
>
<ul>
<li>
<code>PropertyTag.name</code> attribute is now
<code>java.lang.Object</code> instead of <code>java.lang.String</code>.
</li>
</ul>
</changelog:release>
</c:if>

<changelog:release
Expand Down
2 changes: 1 addition & 1 deletion devel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<relativePath>../../../parent/pom.xml</relativePath>
</parent>

<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib-devel</artifactId><version>1.15.2-POST-SNAPSHOT</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib-devel</artifactId><version>1.16.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<relativePath>../../parent/pom.xml</relativePath>
</parent>

<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.15.2-POST-SNAPSHOT</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.16.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/semanticcms/core/taglib/ElementTag.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* semanticcms-core-taglib - Java API for modeling web page content and relationships in a JSP environment.
* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2019, 2020, 2021, 2022 AO Industries, Inc.
* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
* [email protected]
* 7262 Bull Pen Cir
* Mobile, AL 36695
Expand All @@ -24,7 +24,7 @@
package com.semanticcms.core.taglib;

import static com.aoapps.lang.Strings.nullIfEmpty;
import static com.aoapps.taglib.AttributeUtils.resolveValue;
import static com.aoapps.servlet.el.ElUtils.resolveValue;
import static com.semanticcms.core.taglib.PageTag.PROPERTY_ATTRIBUTE_PREFIX;

import com.aoapps.encoding.taglib.EncodingBufferedTag;
Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/semanticcms/core/taglib/PropertyTag.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* semanticcms-core-taglib - Java API for modeling web page content and relationships in a JSP environment.
* Copyright (C) 2017, 2020, 2021, 2022 AO Industries, Inc.
* Copyright (C) 2017, 2020, 2021, 2022, 2023 AO Industries, Inc.
* [email protected]
* 7262 Bull Pen Cir
* Mobile, AL 36695
Expand All @@ -25,7 +25,9 @@

import com.aoapps.encoding.MediaType;
import com.aoapps.encoding.taglib.EncodingBufferedTag;
import com.aoapps.html.any.attributes.text.Name;
import com.aoapps.io.buffer.BufferResult;
import com.aoapps.lang.Coercion;
import com.aoapps.servlet.jsp.LocalizedJspTagException;
import com.aoapps.taglib.AttributeRequiredException;
import com.aoapps.taglib.NameAttribute;
Expand Down Expand Up @@ -61,8 +63,8 @@ public MediaType getOutputType() {
}

@Override
public void setName(String name) {
this.name = name;
public void setName(Object name) throws IOException {
this.name = Coercion.toString(Name.name.normalize(name));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* semanticcms-core-taglib - Java API for modeling web page content and relationships in a JSP environment.
* Copyright (C) 2015, 2016, 2017, 2020, 2021, 2022 AO Industries, Inc.
* Copyright (C) 2015, 2016, 2017, 2020, 2021, 2022, 2023 AO Industries, Inc.
* [email protected]
* 7262 Bull Pen Cir
* Mobile, AL 36695
Expand All @@ -23,7 +23,7 @@

package com.semanticcms.core.taglib;

import static com.aoapps.taglib.AttributeUtils.resolveValue;
import static com.aoapps.servlet.el.ElUtils.resolveValue;

import com.semanticcms.core.model.Node;
import com.semanticcms.core.model.NodeBodyWriter;
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources-filtered/META-INF/semanticcms-core.tld
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
semanticcms-core-taglib - Java API for modeling web page content and relationships in a JSP environment.
Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 AO Industries, Inc.
Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc.
[email protected]
7262 Bull Pen Cir
Mobile, AL 36695
Expand Down Expand Up @@ -1066,7 +1066,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
</tag>
<tag>
<!-- datePublished="2017-07-19T12:12:39-05:00" -->
<!-- dateModified="2021-06-16T13:20:50-05:00" -->
<!-- dateModified="2023-10-02T12:28:06Z" -->
<description><![CDATA[
<p>
Sets a property of a
Expand All @@ -1090,7 +1090,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<name>name</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
<type>java.lang.Object</type>
</attribute>
<attribute>
<description><![CDATA[
Expand Down

0 comments on commit c98369a

Please sign in to comment.